View Source SemanticMarkdown.AST (semantic_markdown v0.1.0)

SemanticMarkdown.AST module contains utilities for transforming Earmark's AST.

Link to this section Summary

Functions

Transform AST tree so that non-tagged nodes get a node by themselves (and sibling nodes are combined into one)

Helper function, replace the value of given attribute with the other one

Replace Earmark's footnotes with the ones provided in configuration

Link to this section Functions

Link to this macro

is_temporary_tag(n)

View Source (macro)

Transform AST tree so that non-tagged nodes get a node by themselves (and sibling nodes are combined into one)

Link to this function

replace_attr(ast_node, attribute_name, new_value)

View Source

Helper function, replace the value of given attribute with the other one

Link to this function

translate_footnotes(ast, options)

View Source

Replace Earmark's footnotes with the ones provided in configuration