astro-ghostcms/packages/astro-ghostcms-rendercontent
dependabot[bot] cfcefa5d34
Bump the prod-dependencies group with 4 updates
Bumps the prod-dependencies group with 4 updates: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro), [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite), [astro-seo](https://github.com/jonasmerlin/astro-seo) and [sass](https://github.com/sass/dart-sass).


Updates `astro` from 4.3.7 to 4.4.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.4.0/packages/astro)

Updates `vite` from 5.1.2 to 5.1.3
- [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.3/packages/vite)

Updates `astro-seo` from 0.8.0 to 0.8.2
- [Release notes](https://github.com/jonasmerlin/astro-seo/releases)
- [Changelog](https://github.com/jonasmerlin/astro-seo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jonasmerlin/astro-seo/compare/v0.8.0...v0.8.2)

Updates `sass` from 1.70.0 to 1.71.0
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.70.0...1.71.0)

---
updated-dependencies:
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-dependencies
- dependency-name: vite
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-dependencies
- dependency-name: astro-seo
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-dependencies
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-20 00:11:45 +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: update versions 2024-02-15 12:55:32 +00:00
LICENSE Massive Repo Cleanup and organization 2024-02-14 05:17:01 -08:00
README.md update render util readme 2024-02-13 02:41:27 -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 4 updates 2024-02-20 00:11:45 +00:00

README.md

Astro GhostCMS Content API HTML Processor

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