Skip to content

Adding a concept of "markdown document" (like XML DOM) and document processors#41

Open
trygvis wants to merge 1 commit intorjeschke:masterfrom
trygvis:master
Open

Adding a concept of "markdown document" (like XML DOM) and document processors#41
trygvis wants to merge 1 commit intorjeschke:masterfrom
trygvis:master

Conversation

@trygvis
Copy link
Copy Markdown

@trygvis trygvis commented Jul 22, 2015

This is mainly a suggestion on how one can implement a document model for markdown. This is useful for very custom HTML generation, implementing manipulation of the markdown document (like adding a TOC) or as a basis for adding plugins.

 * The nodes have attributes to facilitate sending data between processors.
o Adding document processors that can work on and manipulate the DOM.
o Adding three document processors:
 * HTML processor that creates a HTML document.
 * Markdown processor that creates a new Markdown document.
 * TOC processor that reads the current document and injects a table of contents at the start of the document.
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