Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bennycode/remark-hexo
A remark plugin to render Hexo's tag plugins.
https://github.com/bennycode/remark-hexo
hexo markdown plugin remark
Last synced: 3 months ago
JSON representation
A remark plugin to render Hexo's tag plugins.
- Host: GitHub
- URL: https://github.com/bennycode/remark-hexo
- Owner: bennycode
- License: mit
- Created: 2023-10-18T08:01:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-01T00:25:40.000Z (4 months ago)
- Last Synced: 2024-10-01T22:37:18.476Z (4 months ago)
- Topics: hexo, markdown, plugin, remark
- Language: TypeScript
- Homepage:
- Size: 780 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# remark-hexo
A remark plugin to render [Hexo's tag plugins](https://hexo.io/docs/tag-plugins). This plugin can be used with [Astro](https://docs.astro.build/en/guides/markdown-content/#markdown-plugins), [Gatsby](https://www.gatsbyjs.com/tutorial/remark-plugin-tutorial/), [Docusaurus](https://docusaurus.io/docs/next/markdown-features/plugins) and all other frameworks that support [remark plugins](https://github.com/remarkjs/remark#plugins).
## Supported Hexo Tags
- [`{% asset_img %}`](https://hexo.io/docs/tag-plugins#Embed-image)
- [`{% youtube %}`](https://hexo.io/docs/tag-plugins#YouTube)## Troubleshooting
When you're using this plugin with the [Astro web framework](https://astro.build/), you might want to turn off [SmartyPants](https://daringfireball.net/projects/smartypants/) in your Astro config file ([find out how](https://docs.astro.build/de/reference/configuration-reference/#markdownsmartypants)). This is because SmartyPants changes `{% youtube 62J_eQsK0e0 'video' true %}` into `{% youtube 62J_eQsK0e0 ‘video’ true %}` with apostrophes in the embeds.
**Resources**
- https://www.gatsbyjs.com/tutorial/remark-plugin-tutorial/
- https://www.telerik.com/blogs/asts-markdown-and-mdx**Inspirations**
- https://github.com/ntwcklng/gatsby-remark-embed-youtube
- https://github.com/remcohaszing/remark-mermaidjs