Markdown features supported by mdq
mainBased on the example documentation, mdq (jq for Markdown) is designed to parse and query various Markdown constructs. The following elements are supported for extraction and querying:
- Headers:
#,##,###, etc. - Text Styles: Italics, bold, and
inline code. - Links:
- Inline links:
[text](url) - Links with titles:
[text](url "title") - Reference links:
[text][id] - Collapsed/Shortcut links:
[text][]or[text]
- Inline links:
- Lists:
- Ordered lists:
1. item - Unordered lists:
- item - Nested lists
- Task lists:
[x] checkedand[ ] unchecked
- Ordered lists:
- Tables: Standard Markdown pipe tables.
- Blockquotes:
> quoteand nested blockquotes. - Code Blocks:
- Fenced code blocks with language identifiers (e.g.,
```types). - Code blocks with metadata (e.g.,
```text title="...").
- Fenced code blocks with language identifiers (e.g.,
- Footnotes:
[^1]and[^1]: definition. - HTML: Inline HTML (e.g.,
<span>) and block-level HTML (e.g.,<div>).