astro-ghostcms/packages/astro-ghostcms-rendercontent
dependabot[bot] ca7a97013d
Bump the prod-dependencies group with 11 updates
Bumps the prod-dependencies group with 11 updates:

| Package | From | To |
| --- | --- | --- |
| [@astrojs/sitemap](https://github.com/withastro/astro/tree/HEAD/packages/integrations/sitemap) | `3.0.5` | `3.1.1` |
| [@ts-ghost/core-api](https://github.com/PhilDL/ts-ghost) | `5.1.2` | `6.0.0` |
| [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) | `4.4.0` | `4.4.10` |
| [package-json](https://github.com/sindresorhus/package-json) | `9.0.0` | `10.0.0` |
| [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `5.1.3` | `5.1.4` |
| [ultrahtml](https://github.com/natemoo-re/ultrahtml) | `1.5.2` | `1.5.3` |
| [@fontsource-variable/inter](https://github.com/fontsource/font-files/tree/HEAD/fonts/variable/inter) | `5.0.16` | `5.0.17` |
| [astro-seo](https://github.com/jonasmerlin/astro-seo) | `0.8.2` | `0.8.3` |
| [sass](https://github.com/sass/dart-sass) | `1.71.0` | `1.71.1` |
| [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight) | `0.19.0` | `0.21.1` |
| [sharp](https://github.com/lovell/sharp) | `0.32.6` | `0.33.2` |


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

Updates `@ts-ghost/core-api` from 5.1.2 to 6.0.0
- [Release notes](https://github.com/PhilDL/ts-ghost/releases)
- [Changelog](https://github.com/PhilDL/ts-ghost/blob/main/CHANGELOG.md)
- [Commits](https://github.com/PhilDL/ts-ghost/compare/@ts-ghost/core-api@5.1.2...@ts-ghost/core-api@6.0.0)

Updates `astro` from 4.4.0 to 4.4.10
- [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.10/packages/astro)

Updates `package-json` from 9.0.0 to 10.0.0
- [Release notes](https://github.com/sindresorhus/package-json/releases)
- [Commits](https://github.com/sindresorhus/package-json/compare/v9.0.0...v10.0.0)

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

Updates `ultrahtml` from 1.5.2 to 1.5.3
- [Release notes](https://github.com/natemoo-re/ultrahtml/releases)
- [Changelog](https://github.com/natemoo-re/ultrahtml/blob/main/CHANGELOG.md)
- [Commits](https://github.com/natemoo-re/ultrahtml/compare/v1.5.2...v1.5.3)

Updates `@fontsource-variable/inter` from 5.0.16 to 5.0.17
- [Changelog](https://github.com/fontsource/font-files/blob/main/fonts/variable/inter/CHANGELOG.md)
- [Commits](https://github.com/fontsource/font-files/commits/HEAD/fonts/variable/inter)

Updates `astro-seo` from 0.8.2 to 0.8.3
- [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.2...v0.8.3)

Updates `sass` from 1.71.0 to 1.71.1
- [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.71.0...1.71.1)

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

Updates `sharp` from 0.32.6 to 0.33.2
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.32.6...v0.33.2)

---
updated-dependencies:
- dependency-name: "@astrojs/sitemap"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-dependencies
- dependency-name: "@ts-ghost/core-api"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: prod-dependencies
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-dependencies
- dependency-name: package-json
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: prod-dependencies
- dependency-name: vite
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-dependencies
- dependency-name: ultrahtml
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prod-dependencies
- dependency-name: "@fontsource-variable/inter"
  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-patch
  dependency-group: prod-dependencies
- dependency-name: "@astrojs/starlight"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-dependencies
- dependency-name: sharp
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prod-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 11:57:05 +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-20 00:35:26 +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 11 updates 2024-03-04 11:57:05 +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