zopieux / py-gfm

Github-Flavored Markdown for Python-Markdown.
https://pypi.org/project/py-gfm/
BSD 3-Clause "New" or "Revised" License
71 stars 14 forks source link

Render task list without bullets #2

Closed Crocmagnon closed 8 years ago

Crocmagnon commented 8 years ago

GitHub renders task lists without bullets :

Currently, this implementation still shows the bullets.

Inspecting their code, they solved it by adding some classes to the enclosing <ul> and the inner <li> tags to remove the bullets.

Crocmagnon commented 8 years ago

I think I've worked my way around by adding some class to the <li> following the configuration described here : https://py-gfm.readthedocs.io/en/latest/lib/tasklist.html.

Though, it would be cool to be able to custom the enclosing <ul> too !

zopieux commented 8 years ago

py-gfm provides no default CSS as it is only a Markdown parser. Nevertheless, I do agree it would be useful to be able to add a list-level class (that is, on the <ul> or <ol>) so you don't have to mess with item_attrs.

Opening #3 to that end.

zopieux commented 8 years ago

@Crocmagnon Implemented! See the new section for your use case. Last release is on PyPi.