A Remark plugin that converts Hexo tag syntax to HTML for use in Astro projects.
npm install remark-hexo-tags
import { defineConfig } from 'astro/config';
import remarkHexoTags from 'remark-hexo-tags';
export default defineConfig({
markdown: {
remarkPlugins: [remarkHexoTags],
},
});
// In your main CSS file or component
import 'remark-hexo-tags/styles';
// For carousel functionality
import 'remark-hexo-tags/assets/carousel-touch.js';
// For issues functionality
import 'remark-hexo-tags/assets/issues.js';
{% btns %}...{% endbtns %}
- Button groups{% bubble text,note,color %}
- Bubble annotations{% folding title %}...{% endfolding %}
- Collapsible content
{% audio src %}
- Audio player{% video src %}
- Video player{% videos grid,2 %}...{% endvideos %}
- Video grid{% carousel id,title %}...{% endcarousel %}
- Image carousel
{% checkbox text %}
- Checkbox{% radio text %}
- Radio button
{% ghcard username %}
- GitHub user card{% link title,url,icon %}
- Link card{% site title,url=...,screenshot=... %}
- Site card
{% u text %}
- Underline{% emp text %}
- Emphasis{% kbd key %}
- Keyboard key{% del text %}
- Deleted text
# Install dependencies
npm install
# Run tests
npm test
# Build assets
npm run build
MIT