File: xml_comments.md

package info (click to toggle)
ruby-maruku 0.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,296 kB
  • ctags: 492
  • sloc: ruby: 5,726; xml: 235; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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: ***
<!--
&rsquo;
-->

<!-- declarations for <head> & <body> -->

<!-- -- is invalid -->

<!-- -- is
invalid -->

*** Output of inspect ***
md_el(:document,[md_html("<!--\n&rsquo;\n-->"),
	md_html("<!-- declarations for <head> & <body> -->"),
	md_html("<!-- - - is invalid -->"),
	md_html("<!-- - - is\ninvalid -->")])
*** Output of to_html ***
<!--
&rsquo;
-->

<!-- declarations for <head> & <body> -->

<!-- - - is invalid -->

<!-- - - is
invalid -->