Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
switch to github flavored markdown for CMS pages #1613
Conversation
Makes sense for this change. Thanks. |
Thank you for the review @Mariatta! |
RENDERERS = deepcopy(DEFAULT_MARKUP_TYPES) | ||
for i, renderer in enumerate(RENDERERS): | ||
if renderer[0] == 'markdown': | ||
markdown_index = i | ||
|
||
RENDERERS[markdown_index] = ( | ||
'markdown', | ||
cmarkgfm.github_flavored_markdown_to_html, | ||
'Markdown' | ||
) |
di
Jul 14, 2020
Member
RENDERERS = deepcopy(DEFAULT_MARKUP_TYPES) | |
for i, renderer in enumerate(RENDERERS): | |
if renderer[0] == 'markdown': | |
markdown_index = i | |
RENDERERS[markdown_index] = ( | |
'markdown', | |
cmarkgfm.github_flavored_markdown_to_html, | |
'Markdown' | |
) | |
RENDERERS = [ | |
x, cmarkgfm.github_flavored_markdown_to_html if x == 'markdown' else xx, xxx, | |
for x, xx, xxx in deepcopy(DEFAULT_MARKUP_TYPES) | |
] |
I don't know what to name these but maybe this would be more clear? idk
Approved regardless |
More and more becoming defacto which leads to confused users... rather than battle with extensions and the Markdown python module... just use
cmarkgfm
.