-
Notifications
You must be signed in to change notification settings - Fork 49
fenced code block not syntax highlighted in marked down #37
Comments
@laoshaw thanks for reporting! I was looking into other issues and can confirm that code block are not syntax highlighted. Please provide a md snippet which contains an example in which the code is not displayed at all. |
Note so self: |
A markdown snippet:
|
Haha, the |
@laoshaw just to have a semi working version this would be the regex for the slid separator: # ftplugin/markdown.vim
let b:presenting_slide_separator_default = '\v(^|\n)\ze#{1,2} ' You should be able to overwrite the separator like this: |
The bars are there on purpose, fencing off the code
That is/should be the case if it works. |
If code can be highlighted they will stand out visibly enough without the two bars I feel. It would be nice to make the two bars optional as they're a bit heavy visually when I have say two or three small snippets of code on one slide(that will be 6 bars then) |
Yeah, design is subjective :) Initially presenting did not do any formatting, it just used the existing hl. If you want a super lightweight version of presenting you can use an old version which does not use figlet, but does proper syntax hl:
Then "fix" the slide sep:
This version would respect your md conceal for your code blocks. I assume you use |
git checkout 9fb8ccc will give me blank slides with only title shown, the code blocks are totally gone if I use |
Glad it kinda works ™️ should be a smoother experience though! I'll try to fix this soon. Out of curiosity: do you use the figlet feature? @laoshaw |
I could not use figlet as I got "error: could not load font small" for all headings on each slide. fixed it: I did not install figlet, now it works but long headline does not look good with the figlet headers, would love just to use a bold font instead, but I like the list using figlet dots |
also when using 'figlet' I found for lists only the first level are figlet-ed, the second level of the list are still using whatever is from markdown, be it |
Related to #34 |
this same occurred on python #Comment
def hola():
print('Hola mundo')
hola() This make the slide divided into 2. The fixes here do not work. |
I had the same issue and fixed it with:
The crucial step seems to be removing the |
I am still facing this issue @sotte |
For me it works. I have no markdown plugin installed - tpopes plugin is integrated in VIM. I do have to add the highlight types to my
|
My workaround is also not using any markdown plugin :) I should mention that in the README. |
For me, the |
I managed to solve the issue here by commenting the lines that ident the code block to the right. Seems like doing so will cause my markdown highlighter to fail to detect the block as a code block. Can't work in a polished PR now, sorry, but here is a complete file: https://gist.github.com/VictorTaelin/df15d860e1aca738794e6f4f67e17c48 Replace |
I have
```cpp ```
for c++, and c for c, and python for python etc, i.e. the 'standard' markdown code block, however they're either displayed as a single color, or the code just disappears, the code block in markdown does not work for me on ubuntu 20.04 vim8.The text was updated successfully, but these errors were encountered: