Skip to content

Commit

Permalink
process empty line in styled comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed May 19, 2018
1 parent 31c0184 commit 13b00a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kramdown-asciidoc/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class AsciiDoc < Base
RESOLVE_ENTITY_TABLE = %w(lt gt).map {|name| Utils::Entities.entity name }.map {|obj| [obj, obj.char] }.to_h

XmlCommentRx = /\A<!--(.*)-->\Z/m
CommentPrefixRx = /^ *!(?: |\Z)/m
CommentPrefixRx = /^ *! ?/m

LF = %(\n)
LFx2 = %(\n\n)
Expand Down
2 changes: 2 additions & 0 deletions spec/fixtures/xml_comment/styled.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
////
Licensed to the ACME Software Foundation under one
or more roadrunner license agreements.

Use at your own risk.
////
2 changes: 2 additions & 0 deletions spec/fixtures/xml_comment/styled.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!--
! Licensed to the ACME Software Foundation under one
! or more roadrunner license agreements.
!
! Use at your own risk.
!-->

0 comments on commit 13b00a8

Please sign in to comment.