| 180 | pass |
| 181 | |
| 182 | class ClassExtension(Extension): |
| 183 | def extendMarkdown(self, md, md_globals): |
| 184 | pattern = r'\[(?P<prefix>[a-z0-9-_]+):(?P<text>.+?)\]' |
| 185 | cp = ClassPattern(pattern) |
| 186 | cp.md = md |
| 187 | cp.ext = self |
| 188 | # Add inline pattern before "reference" pattern |
| 189 | md.inlinePatterns.register(cp, "class", REF_PATTERN_PRIORITY_VALUE) |
| 190 | |
| 191 | class ClassPattern(Pattern): |
| 192 | def getCompiledRegExp(self): |