View Source SemanticMarkdown.AST (semantic_markdown v0.1.0)
SemanticMarkdown.AST
module contains utilities
for transforming Earmark
's AST.
Link to this section Summary
Link to this section Functions
@spec preparse(SemanticMarkdown.Type.ast(), SemanticMarkdown.Type.options_map()) :: [ {atom(), SemanticMarkdown.Type.ast()}, ... ]
Transform AST tree so that non-tagged nodes get a node by themselves (and sibling nodes are combined into one)
@spec replace_attr(SemanticMarkdown.Type.ast_tuple(), String.t(), String.t()) :: SemanticMarkdown.Type.ast_tuple()
Helper function, replace the value of given attribute with the other one
@spec translate_footnotes( SemanticMarkdown.Type.ast(), SemanticMarkdown.Type.options_map() ) :: SemanticMarkdown.Type.ast()
Replace Earmark
's footnotes with the ones provided in configuration