-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around REXML bug https://bugs.ruby-lang.org/issues/9277 that dis…
…allows multiple dashes in comments. Fixes #115
- Loading branch information
Showing
5 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Markdown in comments should not be parsed. https://github.com/bhollis/maruku/issues/115 | ||
Note that output is kind of weird because we modify the comment in order to let REXML parse it due to https://bugs.ruby-lang.org/issues/9277. | ||
*** Parameters: *** | ||
{} | ||
*** Markdown input: *** | ||
<!-- | ||
Header | ||
------ | ||
--> | ||
|
||
<!-- -- --> | ||
*** Output of inspect *** | ||
md_el(:document,[md_html("<!--\nHeader\n-\n-->"), md_html("<!-- - -->")]) | ||
*** Output of to_html *** | ||
<!-- | ||
Header | ||
- | ||
--> | ||
|
||
<!-- - --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
XML Comments need to be handled properly. | ||
Note that output is kind of weird because we modify the comment in order to let REXML parse it due to https://bugs.ruby-lang.org/issues/9277. | ||
*** Parameters: *** | ||
{} | ||
*** Markdown input: *** | ||
<!-- | ||
’ | ||
--> | ||
|
||
<!-- declarations for <head> & <body> --> | ||
|
||
<!-- -- is invalid --> | ||
|
||
<!-- -- is | ||
invalid --> | ||
|
||
*** Output of inspect *** | ||
md_el(:document,[md_html("<!--\n’\n-->"), | ||
md_html("<!-- declarations for <head> & <body> -->"), | ||
md_html("<!-- - is invalid -->"), | ||
md_html("<!-- - is\ninvalid -->")]) | ||
*** Output of to_html *** | ||
<!-- | ||
’ | ||
--> | ||
|
||
<!-- declarations for <head> & <body> --> | ||
|
||
<!-- - is invalid --> | ||
|
||
<!-- - is | ||
invalid --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
require 'json' | ||
require 'simplecov' | ||
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/..')) |