from md for formats
Convert markdown text into human-friendly structured rows. Use --verbose for the full AST.
Signature
> from md {flags}
Flags
--verbose, -v: Return the full AST with type, position, attrs, and children fields.
Input/output types:
| input | output |
|---|---|
| string | table |
Examples
Reduced mode promotes child rows; heading text is represented as a text element.
> '# Title' | from md | get 0.element
textGet the text content of the first element.
> '# Title' | from md | get 0.content
TitleParse markdown frontmatter as a dedicated yaml element.
> '---
title: Demo
---
# A' | from md | get 0.element
yamlUse --verbose to get the full AST; the first node type is h1.
> '# Title' | from md --verbose | get 0.type
h1