| 150 | pass |
| 151 | |
| 152 | class TypeExtension(Extension): |
| 153 | def extendMarkdown(self, md, md_globals): |
| 154 | pattern = r'\[(?P<prefix>type):(?P<type>.+?)\]' |
| 155 | tp = TypePattern(pattern) |
| 156 | tp.md = md |
| 157 | tp.ext = self |
| 158 | # Add inline pattern before "reference" pattern |
| 159 | md.inlinePatterns.register(tp, "type", REF_PATTERN_PRIORITY_VALUE) |
| 160 | |
| 161 | class TypePattern(Pattern): |
| 162 | def getCompiledRegExp(self): |