Defect #16613
openNot proper scanned Markup with point notation
0%
Description
Hi there,
I encountered a little misbehaviour regarding textile markup und . notations.
Example:*test.argh*
test.argh
gets proper parsed (bold test.argh)*[test].argh*
.argh
gets wrong parsed to (bold .argh - [test] is striped)*{test}.argh*
.argh
is parsed to (bold .argh - {test} is striped, as this is the notation for passing css to the markup, which is correct.)
Is the regular expression maybe wrong and it only parses for *[something in brackets].Text
?
Updated by Mario Kishkin almost 7 years ago
Related to #18501.
Textile tries to make from [some_text_without_spaces]
, if is it right after some formatting definition, a language attribute (there will be no lang attribute if you write random stuff). See https://txstyle.org/doc/26/language.
So, this *[some_text_without_spaces] Group name*
becomes Group name.
And at the beginning of a line it becomes a list with a lone *
at the end:
- Group name*
There is a regex for what's in square brackets: [a-z\-_]+
. So if you use anything else besides lowercase letters, '-' or '_' there will be no problem: *[Test] argh*
(capital first letter).
Does not work here though: [Test] argh (it is *[Test] argh*
). Old version of Redmine is used?