{"repo":"zakarialaoui10/van-mdx","free":true,"listed":false,"github":"https://github.com/zakarialaoui10/van-mdx","clone":"git clone https://github.com/zakarialaoui10/van-mdx.git","description":"Markdown for Vanjs","language":"JavaScript","stars":25,"topics":["javascript","markdown","mdx","moro","preprocessor","remark","unified","vanjs","vite"],"license":"MIT","category":"productivity","readme_excerpt":"van-mdx A Markdown preprocessor for Vanjs. It combines the simplicity of Markdown syntax with the power and flexibility of Javascript Demos : - Hello World : Install : Config : Usage : - Article.mdx : Features : - Simple Integration : Write Markdown as usual, and inject Vanjs components wherever needed. - Extensible : Create custom interactive components using Vanjs and use them in any Markdown file. - Reusable : Van-Mdx exports a default functional component, allowing you to call it multiple times with different data, enabling dynamic and versatile use. - Frontmatter Support : Use YAML syntax in to include metadata like titles, descriptions, or configurations in your Markdown files, and define props to pass data dynamically to Zikojs components. - Markdown Support : Use standard Markdown syntax for writing content. - HTML Support : Use standard HTML syntax for writing content. - JSX Syntax : Declare component using Vanjs Hyperscript syntax, and render it using JSX - Props : Pass data to components through props, enabling dynamic rendering and customization of content within your Markdown files. - Attributes: - ESM : : Supports ECMAScript Modules (ESM), allowing you to import and export modules - Expressions : Van-Mdx lets you use JS expressions inside curly braces, like Hello {name}. These expressions can be full JS programs, as long as they evaluate to something renderable. For example, you can use an IIFE like this: - Internal scripts : Include JS logic that runs alongside","default_branch":null,"files":null,"tree":[],"storefront":"/r/zakarialaoui10","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zakarialaoui10/van-mdx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}