Skip to content
Advertisement

Tag: python-markdown

Can Python-Markdown support imageboard-style links?

I would like to add an additional syntax to Python-Markdown: if n is a positive integer, >>n should expand into <a href=”#post-n”>n</a>. (Double angled brackets (>>) is a conventional syntax for creating links in imageboard forums.) By default, Python-Markdown expands >>n into nested blockquotes: <blockquote><blockquote>n</blockquote></blockquote>. Is there a way create links out of >>n, while preserving the rest of blockquote’s

Advertisement