| 126 | pass |
| 127 | |
| 128 | class IconExtension(Extension): |
| 129 | def extendMarkdown(self, md, md_globals): |
| 130 | pattern = r'\[(?P<prefix>icon):(?P<type>[\w| ]+)\]' |
| 131 | tp = IconPattern(pattern) |
| 132 | tp.md = md |
| 133 | tp.ext = self |
| 134 | # Add inline pattern before "reference" pattern |
| 135 | md.inlinePatterns.register(tp, "icon", REF_PATTERN_PRIORITY_VALUE) |
| 136 | |
| 137 | class IconPattern(Pattern): |
| 138 | def getCompiledRegExp(self): |