Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [asciidoc-lang-dev] Text Markup, syntax and parsing thereof

I just realized I mischaracterized how constrained is implemented in Asciidoctor. Here's the regular _expression_ it currently uses for strong:

/(^|[^\p{Word};:}])(?:\[([^\]]+)\])?\*(\S|\S.*?\S)\*(?!\p{Word})/m

Thus, in fact, it does work the way I was implying it should. The formatting pair must be bounded by non-word characters and there cannot be a space directly inside the formatting pair (which is even broader than looking for word characters as I stated). It doesn't consider what punctuation might be there at all (unless that punctuation is defined as a word character, which is another matter).

So the following example works today:

¿*Qué* pasa?

But the current definition is quite clearly too difficult and nuanced (even for me to remember off the top of my head) and it certainly demands clarification.

Best Regards,

-Dan

--
Dan Allen, Vice President | OpenDevise Inc.
Pronouns: he, him, his
Content ∙ Strategy ∙ Community
opendevise.com

Back to the top