I'd say that you need to do escaping more or less similar to html?
There is problem with markown and newlines. Replacing newline by br was only solution that I was able to find.
Also, it seems that you use distinct vertical bar characters in the format? Or is this a trick of my terminal?? It seems that your patch introduces U+2502 (BOX DRAWINGS LIGHT VERTICAL) instead of the usual pipe in some places. Maybe you copy-pasted things from the unicode linestyle.
Main of the functionality is used from aligned format. I tested returned tables in retext and it works. If i have another character than standart pipe, it shouldn`t work.
Why are *_newline variants added for length and formatting? Would it be possible to do without, say by relying on the line count computed by the standard function for instance?
It`s because newlines in markdown, If I need to do it without copy this function, i had to add parameter for markdown to this functions.
The help line is too long, I would suggest not to add the new formats, the list is already truncated with "..." for other formats.
OK
In the sgml documentation, you introduce tab characters, where only spaces should be used.
OK, I modified vimrc as it is in documentation, maybe i do something wrong. I will correct this.
pg_markdown obsahuje falešný prostor mezi čárkou a nový řádek.