diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-05-31 12:58:40 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-05-31 14:59:36 +0200 |
commit | e09badc82087f94861db164d3995abcbe3e60616 (patch) | |
tree | af0d682ba34ff82f3a03b3c7e510089c5fedaac5 /Locale/Po4a/Text.pm | |
parent | 8aa3c6c587e99725deb4f98e48bd5ad7e082435b (diff) |
Fix po4a: Really treat line-based Markdown markup as such.
Diffstat (limited to 'Locale/Po4a/Text.pm')
-rw-r--r-- | Locale/Po4a/Text.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Locale/Po4a/Text.pm b/Locale/Po4a/Text.pm index 77a5cbe..eb8ded9 100644 --- a/Locale/Po4a/Text.pm +++ b/Locale/Po4a/Text.pm @@ -175,11 +175,11 @@ sub parse { $paragraph=""; $wrapped_mode = 1; } elsif ($markdown and - ( $line =~ m/^#/)) { - # Found Markdown headline - $wrapped_mode = 0; - $paragraph .= $line."\n"; + ( $line =~ /^#/ # headline + or $line =~ /^\s*\[\[\!\S[^\]]*\]\]\s*$/)) { # sole macro + # Found Markdown markup that should be preserved as a single line do_paragraph($self,$paragraph,$wrapped_mode); + do_paragraph($self,$line."\n",0); $paragraph=""; $wrapped_mode = 1; } elsif ($markdown and |