Defect #16613

Not proper scanned Markup with point notation

Added by Daniel Felix over 5 years ago. Updated over 1 year ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution: Affected version:

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?

History

#1 Updated by Mario Kishkin over 1 year 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: argh (it is *[Test] argh*). Old version of Redmine is used?

Also available in: Atom PDF