Skip to content

Commit

Permalink
Change Github-flavored Markdown identifier to 'GFM'
Browse files Browse the repository at this point in the history
  • Loading branch information
di committed Apr 1, 2018
1 parent 58631ab commit 3d7b9ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changes
=======

18.1 (2018-04-01)
-----------------

* Change Github-flavored Markdown identifier from ``gfm`` to ``GFM``.


18.0 (2018-03-30)
-----------------

Expand Down
2 changes: 1 addition & 1 deletion readme_renderer/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'descriptions for Warehouse')
__uri__ = "https://github.com/pypa/readme_renderer"

__version__ = "18.0"
__version__ = "18.1"

__author__ = "Donald Stufft"
__email__ = "donald@stufft.io"
Expand Down
4 changes: 2 additions & 2 deletions readme_renderer/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@


variants = {
"gfm": cmarkgfm.github_flavored_markdown_to_html,
"GFM": cmarkgfm.github_flavored_markdown_to_html,
"CommonMark": cmarkgfm.markdown_to_html,
}


def render(raw, variant="gfm", **kwargs):
def render(raw, variant="GFM", **kwargs):
renderer = variants.get(variant)

if renderer:
Expand Down

0 comments on commit 3d7b9ef

Please sign in to comment.