vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
425 stars 61 forks source link

Allow any number of spaces before codeblock #379

Closed jez closed 1 year ago

jez commented 1 year ago

This allows using code blocks in lists, like

- Some list item:

  ```ruby
  class A; end

I can't quite tell the original motivation for requiring four spaces, but I have been using this change locally for multiple weeks and it seems to work fine for me.

Before

Screen Shot 2022-07-11 at 10 32 02 AM

After

Screen Shot 2022-07-11 at 10 31 37 AM
jez commented 1 year ago

:wave: @fmoralesc sorry to bother you; do you maybe have a moment to look at this PR and also #380 ?

Thanks in advance :pray:

fmoralesc commented 1 year ago

LGTM. I can't remember why there was a need for the 4 spaces either.

bewuethr commented 1 year ago

This has been bothering me forever 😅 thank you! 🚀