smart_strong
Smart_Strong Extension for Python-Markdown.
This extention adds smarter handling of double underscores within words.
See https://pythonhosted.org/Markdown/extensions/smart_strong.html for documentation.
Original code Copyright 2011 Waylan Limberg
All changes Copyright 2011-2014 The Python Markdown Project
License: BSD
Attributes
SMART_STRONG_RE = '(?<!\\w)(_{2})(?!_)(.+?)(?<!_)\\2(?!\\w)'
module-attribute
STRONG_RE = '(\\*{2})(.+?)\\2'
module-attribute
Classes
SmartEmphasisExtension(*args, **kwargs)
Bases: Extension
Add smart_emphasis extension to Markdown class.
Initiate Extension and set up configs.
Source code in pyrevitlib/pyrevit/coreutils/markdown/extensions/__init__.py
Attributes
config = {}
class-attribute
instance-attribute
Functions
getConfig(key, default='')
Return a setting for the given key or an empty string.
getConfigs()
getConfigInfo()
setConfig(key, value)
Set a config setting for key
with the given value
.
Source code in pyrevitlib/pyrevit/coreutils/markdown/extensions/__init__.py
setConfigs(items)
Set multiple config settings given a dict or list of tuples.
Source code in pyrevitlib/pyrevit/coreutils/markdown/extensions/__init__.py
extendMarkdown(md, md_globals)
Modify inline patterns.