NiklasRosenstein / pydoc-markdown

Create Python API documentation in Markdown format.
http://niklasrosenstein.github.io/pydoc-markdown/
Other
458 stars 102 forks source link

Option to remove vertical bar '|' before method definition in code block ? #190

Closed t6847kimo closed 3 years ago

t6847kimo commented 3 years ago

Hi, I have noticed that there is '|' before each method definition, which is a little annoying for me. For example,

 | @property
 | def foo() -> bool

Is it possible to remove it by any option?

NiklasRosenstein commented 3 years ago

Hi @t6847kimo , not as of right now. Would you like to contribute an option to the MarkdownRenderer to disable it?

https://github.com/NiklasRosenstein/pydoc-markdown/blob/bcd35748619a218f5fdfe565d29b7674ecae4faa/pydoc-markdown/src/pydoc_markdown/contrib/renderers/markdown.py#L257-L258

t6847kimo commented 3 years ago

OK. I could give it a try.

NiklasRosenstein commented 3 years ago

Closing as the PR was merged. :)