File: html_block_in_para.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 (22 lines) | stat: -rw-r--r-- 392 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
Maruku should not nest block-level HTML inside a paragraph
*** Parameters: ***
{} # params
*** Markdown input: ***
One
<div>a</div>123

<div>a</div>123
*** Output of inspect ***
md_el(:document,[
	md_par("One"),
  md_html("<div>a</div>"),
  md_par("123"),
	md_html("<div>a</div>"),
  md_par("123")
],{},[])
*** Output of to_html ***
<p>One</p>
<div>a</div>
<p>123</p>
<div>a</div>
<p>123</p>