class documentation

class FencedBlockPreprocessor(Preprocessor): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method handle_attrs Return tuple: (id, [list, of, classes], {configs})
Method run Match and store Fenced Code Blocks in the HtmlStash.
Constant FENCED_BLOCK_RE Undocumented
Instance Variable bool_options Undocumented
Instance Variable checked_for_deps Undocumented
Instance Variable codehilite_conf Undocumented
Instance Variable config Undocumented
Instance Variable use_attr_list Undocumented
Method _escape basic html escaping

Inherited from Processor (via Preprocessor):

Instance Variable md Undocumented
def __init__(self, md, config): (source)

Undocumented

def handle_attrs(self, attrs): (source)

Return tuple: (id, [list, of, classes], {configs})

def run(self, lines): (source)

Match and store Fenced Code Blocks in the HtmlStash.

FENCED_BLOCK_RE = (source)

Undocumented

Value
re.compile(dedent('''
            (?P<fence>^(?:~{3,}|`{3,}))[ ]*                          # opening f
ence
            ((\\{(?P<attrs>[^\\}\\n]*)\\})|                              # (opti
onal {attrs} or
            (\\.?(?P<lang>[\\w#.+-]*)[ ]*)?                            # optiona
l (.)lang
...
bool_options: list[str] = (source)

Undocumented

checked_for_deps: bool = (source)

Undocumented

codehilite_conf = (source)

Undocumented

config = (source)

Undocumented

use_attr_list: bool = (source)

Undocumented

def _escape(self, txt): (source)

basic html escaping