sotte / presenting.vim

A simple tool for presenting slides in vim based on text files.
MIT License
300 stars 50 forks source link

Re-enable syntax highlighting in markdown code blocks #32

Closed PhilRunninger closed 3 years ago

PhilRunninger commented 3 years ago

Fixes #31.

  1. Keep the code block delimiters if they include a language for syntax highlighting. If there is no language specified, remove the delimiters, but keep the blank line. Overall this adds two additional lines to the length of the slide, but that should be OK in most situations.
  2. Use the full terminal width for proper centering of text on the screen during presentations. Before it was using the window width, which is less than ideal if you have your Markdown file in a vertically split window.
  3. Update the example file to include both kinds of code blocks.
  4. Update the animated GIF to show the fix.
sotte commented 3 years ago

@PhilRunninger thank you so much!

@chris542 this address your issue #31. It would be great if you can check this out as well to see if you can find any edge cases.

I'll merge it then.

ckangnz commented 3 years ago

Hey i havent been on github recently!! Just saw this. Thanks for the fix! I'll have a look at it now

sotte commented 3 years ago

:+1: @PhilRunninger