tweag / promptworks.vim

PromptWorks vim configs as a self-bootstrapping vundle setup
2 stars 1 forks source link

*.markdown.erb files don't have fenced code blocks #27

Closed di closed 7 years ago

di commented 7 years ago

The ERB and Markdown syntax highlights fine, but not anything embedded. E.g.:

screen shot 2016-07-14 at 12 21 06 pm

If you change a file to .markdown, code blocks work, but ERB does not (as might be expected):

screen shot 2016-07-14 at 12 23 20 pm

I tried to fix this a couple ways but couldn't. @bduggan @nicholaides any ideas?

bduggan commented 7 years ago

Sorry -- not sure I follow the question -- is this a question about syntax highlighting in the editor or about rendering the page?

di commented 7 years ago

@bduggan Syntax highlighting in the editor. The filename changes whether fenced code blocks are highlighted or not.

bduggan commented 7 years ago

hmm, when I try, I don't see syntax highlighting in code fences even inside a .markdown

di commented 7 years ago

Have you pulled recently? I added it in #24.

bduggan commented 7 years ago

Got it, now I can reproduce it (oops, was pulling the rcfiles instead...)

andrewcroce commented 7 years ago

To be clear, this has nothing to do with the rendering of code blocks in the built HTML?

bduggan commented 7 years ago

When I explicitly type :set syntax=markdown.eruby it seems to work. The output of :set syntax beforehand is just eruby, so seems related to properly handling the file extension..

di commented 7 years ago

@andrewcroce Nope, this is a vim-specific thing.

@bduggan Interesting, I didn't know about markdown.eruby, I wonder why the filetype detector didn't pick up on that.