To start working with MDA, you’ll need:Documentation Index
Fetch the complete documentation index at: https://mda.sno.dev/llms.txt
Use this file to discover all available pages before exploring further.
- A basic understanding of Markdown
- A text editor for creating .mda files
- Optionally, the url2mda tool to convert web content to MDA format
Understanding MDA Components
Understanding MDA Components
Understanding MDA Components
MDA has three optional components that enhance standard Markdown:
-
YAML Front Matter: Provides structured metadata (like
title,doc-id). - ai-script blocks: Embeds JSON instructions for AI/LLM processing.
-
Footnotes with JSON: Defines typed relationships between documents (e.g.,
[^ref1]: `{"rel-type": ...}`).
Creating a Simple MDA File
Create a file with the.mda extension. Here’s an example structure:
Adding AI Instructions
Inside your.mda file, you can add an ai-script block like this:
Convert Web Content with url2mda
The easiest way to test MDA is with our url2mda service, which converts web pages to MDA format:Explore the Open Source Toolkit
MDA is fully open source and includes tools like url2mda that you can run locally:- Clone the repository:
git clone https://github.com/sno-ai/mda - Navigate to the url2mda directory:
cd mda/apps/url2mda - Install dependencies:
pnpm install - Run locally:
pnpm dev
docs/mda-examples directory to see MDA in action for various use cases.
That’s it! You’re now ready to create AI-friendly content with MDA.