pub fn convert_content(content: &str) -> StringExpand description
Converts Docusaurus markdown content to Quarto format.
Performs two main transformations:
- Frontmatter: Converts Docusaurus YAML frontmatter to Quarto format
- Admonitions: Converts Docusaurus-style admonitions (:::note) to Quarto callout blocks
The function uses a state machine to track whether it’s currently processing frontmatter (between — markers) or regular content.
§Arguments
content: The complete content of the markdown file as a string
§Returns
A new String containing the converted content in Quarto format