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.

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.

> 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.

<   call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end,
'\%(^\|\s\|\%ua0\|[/:]\)', '')
---
>   call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end,
>         \ '\%(^\|\s\|\%ua0\|[-/:]\)', '')

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.

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).

-- 
-- 
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/CANtTEmY%2BQRzGr5mT8%2BgwHFPFzEDLoqC-Fkwam%3DQkjiRSHDqGNw%40mail.gmail.com.

Raspunde prin e-mail lui