sotte / presenting.vim

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

markdown fixes with arrows and code blocks #29

Closed m3m0m2 closed 3 years ago

m3m0m2 commented 3 years ago

Hi, nice little project, I ended up using this to prepare a presentation at work with little notice

This is just a sample markdown to reproduce the two issues. Previously it attempted to interpret the content of the code block, but I think it's better to leave code blocks verbatim The text before --> was also removed even when not part of a comment

A*B*_var_D --> E

Cheers

sotte commented 3 years ago

Thank you so much for the PR @m3m0m2!

Please post before/after screenshots and a markdown example so that I can test this feature more easily.

m3m0m2 commented 3 years ago

Welcome, in my presentation I wrote a code block to draw a diagram of a few boxes connected with arrows This is just an example, basically the text before --> before my commit got removed even if not a comment and what's inside a code block could get formatted giving some unexpected unalignments:

before_fix test.markdown.txt after_fix

sotte commented 3 years ago

Thanks for the quick response and thanks for the PR!