-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Context
I prefer my documents to look like this:
#·this·is·a·heading
·-·this·is·a·list
·-·another·item
·····-·this·is·a·sublist·entry·
·····-·inteded·by·4·spaces
·-·one·last·list·entry
##·let's·have·a·subheading·here
And·some·more·text
#·another·big·heading
Some·text.·And·some·more·text
So I'd like to have:
- list item indented by a space
- sublist item indented by 4 spaces
- headings/subheadings separated by two linefeeds
This is not exhaustive, it's just an example for how I would like my documents to look like.
Edit: We could check/warn if the chosen settings are not compliant with commonmark. I added · for spaces.
Proposal
A solution would be to provide settings/options to make the style more configureable.
Or to have the ability to add a custom style.
This could also be solved if a markdown renderer would be a selectable renderer in executeablebooks/markdown-it-py, after all that issue brought me here, and it is still open.
Related to that, many older issues for markdown-it-py are about renderers (how do I add my own, plaintext renderer, …). Markdown rendering seems like a complicated problem for everyone. Maybe this could be solved by adding a mapping to panflute, as it was mentioned in another issue?
Sorry, if this proposal is kind of vague, but it seems that the issue spans multiple projects.
Tasks and updates
- decide if this is more an issue that should be tackled within markdown-renderer-it or mdformat
- decide wether it is a manageable task to add docs/renderes to markdown-renderer-it
- check how options/settings could be specified for mdformat (personally I would love to have
blackfor markdown files