File: issue120.md

package info (click to toggle)
ruby-maruku 0.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 1,304 kB
  • sloc: ruby: 5,741; xml: 235; makefile: 2
file content (48 lines) | stat: -rw-r--r-- 1,100 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Style tags should be OK with unescaped angle brackets and ampersands. https://github.com/bhollis/maruku/issues/120
NOTE: Commented CDATA is output because we use XHTML - for HTML mode it should be omitted.
*** Parameters: ***
{}
*** Markdown input: ***
<style type="text/css">
  p > .highlight {
    color: red;
    background-image: url('/foo?bar&baz');
  }
</style>

<style type="text/css">/*<![CDATA[*/
  p > .highlight {
    color: red;
    background-image: url('/foo?bar&baz');
  }
/*]]>*/</style>

<style type="text/css">
/*<![CDATA[*/
  p > .highlight {
    color: red;
    background-image: url('/foo?bar&baz');
  }
/*]]>*/
</style>
*** Output of inspect ***

*** Output of to_html ***
<style type='text/css'>/*<![CDATA[*/
  p > .highlight {
    color: red;
    background-image: url('/foo?bar&baz');
  }
/*]]>*/</style><style type='text/css'>/*<![CDATA[*/
  p > .highlight {
    color: red;
    background-image: url('/foo?bar&baz');
  }
/*]]>*/</style><style type='text/css'>
/*<![CDATA[*/
  p > .highlight {
    color: red;
    background-image: url('/foo?bar&baz');
  }
/*]]>*/
</style>