mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 23:09:23 +08:00
The currently suggested vim modeline formatting string to allow .livemd files to render as markdown on GitHub works, but confuses vim itself. ``` <!-- vim: syntax=markdown --> ``` When opening a .livemd file with the suggested modeline in vim it errors when it tries to parse `-->` as a modeline option. e.g. ``` "2021/day2.livemd" 81L, 1616B Error detected while processing modelines: line 1: E518: Unknown option: --> ``` The fix is to replace the suggested vim modeline ``` <!-- vim: syntax=markdown --> ``` With a modeline declaration format that indicates when the modeline options are complete, allowing vim to ignore the rest of the line. ``` <!-- vim: set syntax=markdown: --> ``` Reference - vim issue: https://github.com/vim/vim/issues/1648 - especially this comment: https://github.com/vim/vim/issues/1648#issuecomment-296386153 Fixes #773 |
||
---|---|---|
.. | ||
livebook | ||
livebook_web | ||
support | ||
livebook_test.exs | ||
test_helper.exs |