generated from withstudiocms/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add custom component to markdown-remark integration - Add a new custom component called "Custom" to the markdown-remark integration in Astro. - The custom component is defined in the file "packages/markdown-remark/tests/fixture/astro/src/pages/custom-components/_comps/Custom.astro". - This component will be used when processing markdown content. * Refactor markdown-remark integration to remove unused code * Refactor markdown-remark integration to remove unused code * Refactor markdown-remark integration to clean up code * Refactor markdown-remark integration to remove unused code and optimize component exports * Refactor markdown-remark integration to optimize component exports * Refactor markdown-remark integration to optimize component exports and remove unused code * Refactor markdown-remark integration to optimize component exports and update type definition * Refactor markdown-remark integration to optimize component exports and remove unused code * add changeset * Refactor markdown-remark integration to include callouts in shared state * ensure all components are auto-converted to lowercase so they meet HTML spec * refactor config * Refactor markdown-remark integration to optimize config * Refactor markdown-remark integration to update import paths * Update readme to match new schema * Refactor markdown-remark integration to update import paths and optimize config
- Loading branch information
1 parent
0c76c8a
commit 6b0053b
Showing
26 changed files
with
598 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
"@studiocms/markdown-remark": minor | ||
--- | ||
|
||
Introduce custom User-Defined component handling. | ||
|
||
This update includes significant enhancements to the Markdown Remark processor Astro Integration, allowing for more flexible and powerful Markdown rendering with custom components. | ||
|
||
### New Features: | ||
|
||
- Added custom components support in the Markdown Remark processor Astro Integration. | ||
- Introduced utility functions in `utils.ts` for component proxy creation, indentation handling, dedenting strings, and merging records. | ||
- Moved zod schema to separate `schema.ts` file. | ||
|
||
### Integration Updates: | ||
|
||
- Enhanced Astro integration to support custom components configuration via `astro.config.mjs`. | ||
- Updated `markdown.ts` to include custom components during Markdown rendering. | ||
- Extended `index.ts` to utilize the new schema and utilities. | ||
|
||
### Documentation: | ||
|
||
- Updated `README.md` with instructions for setting up custom components in Astro integration. | ||
|
||
### Dependencies: | ||
|
||
- Added `entities` and `ultrahtml` as new dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
export * from './processor/index.js'; | ||
export { markdownRemark, markdownRemark as default } from './integration/index.js'; | ||
export { | ||
markdownRemark, | ||
default, | ||
type StudioCMSMarkdownRemarkOptions, | ||
} from './integration/index.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.