Closed JonathanLindsey closed 2 years ago
I edited my original post and title when I realized I needed the sane_lists
extension. That helped (screenshots show the latest). Am I needing to use another extension? I tried using all the extensions listed here. None of the third party extensions are standing out to me.
I just had to add tab_length=2
as documented here under "Indentation/Tab Length".
import markdown
markdown.markdownFromFile(input='input.md', output='output.html', extensions=['sane_lists'], tab_length=2)
Input file:
Code:
Output HTML:
Rendered:
I had hoped it would render more like VSCode does it: