ExtendedMD (EMD) is a powerful enhancement of the standard Markdown syntax, designed to bridge the gap between static text and dynamic content.
While standard Markdown is great for documentation, it lacks the ability to reuse data or handle logic. EMD solves this by introducing a compilation layer that transforms dynamic .emd files into clean, ready-to-use .md files.
- Variable Injection: Define your data once in the YAML frontmatter and reuse it throughout your document using the
{{ variable }}syntax. - Clean Separation: Keep your data (variables) and your structure (content) separate for better maintainability.
- Lightweight Compiler: A fast, Node-based compiler to a standard Markdown file.
- IntelliSense Support: A dedicated VSIX extension for Visual Studio Code that provides syntax highlighting for
.emdfiles, ensuring your variables and frontmatter are always readable and error-free.
To start using ExtendedMD in your project, follow these simple steps:
Install the core processor globally or as a dev dependency:
npm install -g extendedmdRun the compiler in watch mode to automatically transform your .emd files into .md:
emd --watch .For the best experience, including syntax highlighting and IntelliSense, install the ExtendedMD VSIX extension.
- Write: Create an
.emdfile with a YAML header containing yourvariables. - Compile: Run the EMD parser to parse your logic.
Initial release of ExtendedMD
This project is licensed under the MIT License.
