astro-ghostcms/packages/astro-ghostcms-rendercontent
dependabot[bot] 90f9f5d838
Bump the prod-dependencies group with 3 updates
Bumps the prod-dependencies group with 3 updates: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite), [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) and [@matthiesenxyz/astro-gists](https://github.com/MatthiesenXYZ/astro-gists).


Updates `vite` from 5.1.5 to 5.1.6
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.1.6/packages/vite)

Updates `astro` from 4.4.13 to 4.5.0
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@4.5.0/packages/astro)

Updates `@matthiesenxyz/astro-gists` from 0.2.3 to 0.2.7
- [Release notes](https://github.com/MatthiesenXYZ/astro-gists/releases)
- [Commits](https://github.com/MatthiesenXYZ/astro-gists/compare/@matthiesenxyz/astro-gists@0.2.3...@matthiesenxyz/astro-gists@0.2.7)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-dependencies
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-dependencies
- dependency-name: "@matthiesenxyz/astro-gists"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-11 15:54:04 +00:00
..
examples Linted the entire project. no linting errors now 2024-02-15 04:49:02 -08:00
lib Linted the entire project. no linting errors now 2024-02-15 04:49:02 -08:00
CHANGELOG.md Chore: Ready for Release (#87) 2024-03-07 23:31:10 -08:00
LICENSE Massive Repo Cleanup and organization 2024-02-14 05:17:01 -08:00
README.md feat: Chore: Migrate from Render content Util and `<Fragment set:html />` to `astro-remote` (#86) 2024-03-07 23:29:02 -08:00
index.ts Linted the entire project. no linting errors now 2024-02-15 04:49:02 -08:00
package.json Bump the prod-dependencies group with 3 updates 2024-03-11 15:54:04 +00:00

README.md

Astro GhostCMS Content API HTML Processor

NOTE: This package is no longer in use - Please switch to astro-remote

Render remote GhostCMS HTML in Astro with full control over the output.

Powered by ultrahtml.

Rendering Remote Content

The most basic function of astro-ghostcms-rendercontent is to convert a string of HTML to Astro friendly HTML. Use the GhostRender component.

---
import { GhostRender } from "@matthiesenxyz/astro-ghostcms-rendercontent";
---

<GhostRender content={post.html} />

Customization

GhostRender allows full control over the rendering of output. The components option allows you to replace a standard HTML element with a custom component.

---
import { GhostRender } from "@matthiesenxyz/astro-ghostcms-rendercontent";
import Title from '../components/Title.astro';
---

<!-- Render <h1> as custom <Title> component -->
<GhostRender content={post.html} components={{ h1: Title }} />

For examples on how to setup custom components check examples