Hi Marshall, Am Mo., 17. Mai 2021 um 14:32 Uhr schrieb Marshall Ward <[email protected]>: > > On Mon, May 17, 2021 at 8:04 AM Friedrich Romstedt > <[email protected]> wrote: > > > Attached you find some small exploration of the behaviour of > > ``rst2html``. This behaviour might be seen as authoritative. > > David Goodger is author of both the reStructuredText standard and > docutils, which includes rst2html. I suppose the standard is the true > authority, although in practice one is going to have trouble if > behavior doesn't match docutils.
I certainly agree. To my impression David Goodger worked out the grammar of ReST (particularly the section about inline markup I linked to) very thoroughly. > In this case, luckily the behavior is clear and we need to add dash > (and all the rest) to the list of valid start/end tokens. This sounds promising. > > From what you've written I understand that there already is some code > > implementing that there are sets of characters allowed to > > precede/follow inline markup strings like ``*`` or ``**``, so > > hopefully the dash issue won't be too difficult to resolve? > > Yes, I have a fix which resolves the use of dashes. Great! > < call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, > '\%(^\|\s\|\%ua0\|[/:]\)', '') > --- > > call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, > > \ '\%(^\|\s\|\%ua0\|[-/:]\)', '') Please apologise that I do not truly understand this code snippet. > At the moment, my only concern is that there seems to be some legacy > code blocks here, which seem like they were intended to catch dashes > but do not appear to be working. I'm not the original author of those > code blocks, so I don't know how they were supposed to work or what > the problem could be. Might be ``git blame`` an option? > I will try to find a bit of time to overhaul the whole section and see > if it can be trimmed down. But if I cannot manage to clean it up, > then I'll just pass along this simple fix (after appending the other > missing symbols in the document you linked). I am happy about this. Good luck! It's great that you're closing in on a real fix. I am looking forward to seeing it in action! Let me know when I can do some testing (a short pointer on how to install the resp. files user-locally would be appreciated). Best wishes, Friedrich -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAN06%3DCy3Ucy0TbxTprUirHB%2Bd4YzEy9sq%2B370nYUWaW1CRUQdw%40mail.gmail.com.
