Cast '(R)Markdown' Files to 'XML' and Back Again
Find between a pattern
Get protected nodes
Isolate nodes in a document
Aliased namespace prefix for commonmark
Convert markdown to XML
Protect curly elements for further processing
Protect fences of Pandoc fences divs for further processing
Find and protect all inline math elements
Protect math elements from commonmark's character escape
Protect unescaped square brackets from being escaped
Create a document and list of nodes to isolate
Resolve Reference-Style Links
Display a node or nodelist as markdown
The tinkr stylesheet
tinkr: Cast '(R)Markdown' Files to 'XML' and Back Again
Write front-matter (YAML, TOML or JSON) and XML back to disk as (R)Mar...
Transform file to XML
R6 class containing XML representation of Markdown
Parsing '(R)Markdown' files with numerous regular expressions can be fraught with peril, but it does not have to be this way. Converting '(R)Markdown' files to 'XML' using the 'commonmark' package allows in-memory editing via of 'markdown' elements via 'XPath' through the extensible 'R6' class called 'yarn'. These modified 'XML' representations can be written to '(R)Markdown' documents via an 'xslt' stylesheet which implements an extended version of 'GitHub'-flavoured 'markdown' so that you can tinker to your hearts content.
Useful links