Project

General

Profile

Actions

Defect #16613

open

Not proper scanned Markup with point notation

Added by Daniel Felix over 10 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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?

Actions #1

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?

Actions

Also available in: Atom PDF