Skip to content

Commit

Permalink
fix issue #80
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Mar 9, 2014
1 parent a8bcc13 commit 754ba91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Text/Md2Inao.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ sub prepare_text_for_markdown {
$text =~ s/^[ ]{1,3}([^ <])/ $1/mg;

## Work Around: リストの後にコードブロックが続くとだめな問題 (issue #6)
$text =~ s![-*+] (.*?)\n\n !- $1\n\n \n\n !g;
$text =~ s!([-*+] .*?)\n\n !$1\n\n \n\n !g;

return $text;
}
Expand Down
4 changes: 2 additions & 2 deletions t/30_indesign_basic_syntax.t
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ __END__
* ハイフンにならない
* ハイフンになる(ちなみにアスタリスクのうしろの半角スペースをなしにすると、ハイフンになりません)
* ハイフンになる
a
--- expected
Expand All @@ -357,7 +357,7 @@ __END__
<ParaStyle:本文>あ
<ParaStyle:半行アキ>
<ParaStyle:リスト>* ハイフンにならない
<ParaStyle:リスト>* ハイフンになる(ちなみにアスタリスクのうしろの半角スペースをなしにすると、ハイフンになりません)
<ParaStyle:リスト>* ハイフンになる
<ParaStyle:半行アキ>
<ParaStyle:リスト>a
Expand Down

0 comments on commit 754ba91

Please sign in to comment.