Skip to content

Conversation

@andrewtdiz
Copy link

This commit introduces a new rawMarkdown function, allowing a page's content to be rendered back to its original Markdown format.

Useful for copyMarkdown button in static websites or rendering as plain Markdown

This commit:

  • Adds a rawMarkdown struct to the Page
  • Implements the Markdown rendering logic in a new src/render/markdown.zig file.
  • Updating simple test layout and snapshots to include and verify the raw Markdown output.

The <template> tag is preferred for Copy Markdown functionality as it:

  • Does not render to the DOM
  • Is ignored by search engine SEO.
  • Is valid, semantic HTML5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant