On 23 October 2015 at 01:45, Ted Toal <[email protected]> wrote:
> So are you saying that the particular escaping that is needed for ###
> differs depending on context, and therefore I'd need to try different
> combinations at EACH OCCURRENCE within the document?
>

No, clearly Asciidoc is a program, so its deterministic, but ...

Quotes are detected by regular expressions.  The context that the
regular expression applies to is complex and as I said above depends
on what other quotes are around, if the quote can be interpreted as an
opening quote, or a closing quote, if other quotes are processed
before or after this quote and the context, ie how much text the
regular expression looks in.  And I can't tell you if thats all
without checking the code in great detail.

Two situations are the same when they are *exactly* the same, but as a
human we may have difficulty telling.

In the specific case here I think the difference is the first
occurrence of that sentence is in a paragraph with lots of other
hashes around, which might be interpreted as the closing quotes for
the ones in that sentence.  The second case the hashes only occur by
themselves in a paragraph.

It is unfortunate that the specific topic of your document uses many
literal occurrences that might be interpreted as markup.  Usually
things are not so complex.

What I tend to do is to use a passthrough markup around literal
content, such as backquotes.  Also this is usually styled so it makes
the literal text different, making it more distinguishable to readers.
But I acknowledge you might not want to do that.

Cheers
Lex

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to