vim.help icon indicating copy to clipboard operation
vim.help copied to clipboard

41.4 fromatting breaks in code sample

Open Termplexed opened this issue 4 years ago • 1 comments

Nice work :), but a rendering issue.

Environment

  • Operating system: Linux 4.15.0-136-generic #140-Ubuntu x86_64 GNU/Linux

  • Browser name and version: FireFox 85.0.1 (64-bit)

Description

Article breaks a little below start of 41.4 the rest of page is not inside the section element of id=page.

This breaks the flow.

Link(s):

  • https://vim.help/41-write-a-vim-script#41.4

Screenshot:

Layout breaks after '\. in code sample. Due to $ perhaps:

        :if str =~ " "
        :  echo "str contains a space"
        :endif
        :if str !~ '\.$'
        :  echo "str does not end in a full stop"
        :endif

image

DOM. Everything after </section> is botched.

image

Termplexed avatar Feb 28 '21 14:02 Termplexed

Nice catch, thanks! The parser has a long way to go before dealing with all the edge cases properly…

I've put this project on pause for now, hopefully I'll be able to come back to it in a few months. It could really benefit from a TS port and better separation of concerns.

cheap-glitch avatar Feb 28 '21 16:02 cheap-glitch