facelessuser / MarkdownPreview

Markdown preview and build plugin for Sublime Text https://facelessuser.github.io/MarkdownPreview/
Other
405 stars 53 forks source link

Rendering is picky about list indentation #76

Closed ghost closed 5 years ago

ghost commented 5 years ago

First off, hat tip for this package, I'm really happy a simple Ctrl+B gives me a rendered preview in my browser.

I've noticed that 2-space list indentation isn't recognized, and I need to make it 4-space to actually render these list items as children. Github would probably render these correctly, but I'd prefer to keep things local and not depend on an Internet connection.

My only custom config is

{
  "build_action": "browser"
}

so the parser is markdown and the markdown_extensions are left with their default.

ghost commented 5 years ago

These files are UTF-8 and Spaces: 2 in Sublime.

facelessuser commented 5 years ago

Sorry that I missed this.

That is simply the way Python Markdown does things. You can use the github or gitlab parser if it is not to your liking, or possibly look for a Python Markdown extension that treats things differently and integrate it into Sublime to use it.

ghost commented 5 years ago

Understood, thanks! I also noticed a few other spots where Python Markdown seems to be a little stricter.

I'll probably just live with it :)