Skip to content

Instantly share code, notes, and snippets.

@08opt
08opt / meda.py
Created July 10, 2012 13:49 — forked from luztak/meda.py
Markdown parsing library in pure Python(md2html).
from re import compile as rc
def inline_link(text):
il=rc('\[(.*?)\]\((.*?)\)')
ret=il.findall(text)
for x in ret:
text=text.replace('[' x[0]+']('+x[1]+')','<a href="'+x[1]+'">'+x[0]+'</a>')
return text
def head(text):