Skip to content

Commit

Permalink
Merge pull request #5 from taikii/feat.halign
Browse files Browse the repository at this point in the history
Textile heading h-align mark support
  • Loading branch information
taikii authored May 6, 2023
2 parents 0ff86c1 + 39bc0fc commit 6852e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name 'Include macro extension plugin'
author 'Taiki IKEGAME'
description 'This plugin makes possible include wiki section.'
version '1.0.6'
version '1.0.7'
url 'https://github.com/taikii/redmine_include_macro_extension'
author_url 'https://github.com/taikii'

Expand Down Expand Up @@ -34,7 +34,7 @@
regex = nil
case Setting.text_formatting
when "textile"
regex = '(?:\A|\r?\n\s*\r?\n)h\d+\.[ \t]+(.*?)(?=\r?\n\s*\r?\n|\z)'
regex = '(?:\A|\r?\n\s*\r?\n)h\d+(?:(?:<>|<|>|\=|[()]+)*)\.[ \t]+(.*?)(?=\r?\n\s*\r?\n|\z)'
when "markdown","common_mark"
regex = '(?:\A|\r?\n)#+ +(.*?)(?=\r?\n|\z)'
end
Expand Down

0 comments on commit 6852e14

Please sign in to comment.