mirror of
https://github.com/golang/go
synced 2024-11-18 23:05:06 -07:00
e609210bcd
Consider this input: This is preformatted: line 1 line 2 line 3 after blank line Before, this would split into two different <pre> sections in Markdown mode. Now it matches legacy mode and doesn't. Fixes golang/go#37972. Change-Id: I6bf156c76ef9c63b6c3ffe6cce431d9589def867 Reviewed-on: https://go-review.googlesource.com/c/tools/+/224958 Reviewed-by: Andrew Bonventre <andybons@golang.org>
40 lines
548 B
Markdown
40 lines
548 B
Markdown
# Code
|
|
|
|
##
|
|
|
|
Code:
|
|
|
|
.code testdata/code.txt
|
|
|
|
Snippet:
|
|
|
|
.code testdata/code.txt /Snippet/
|
|
|
|
Highlight:
|
|
|
|
.code testdata/code.txt HL1
|
|
|
|
---
|
|
<h1>Code</h1>
|
|
<section>
|
|
<p>Code:</p>
|
|
<div class="code">
|
|
<pre><span num="1">code file</span>
|
|
<span num="2">Snippet</span>
|
|
<span num="3">important</span>
|
|
</pre>
|
|
</div>
|
|
<p>Snippet:</p>
|
|
<div class="code">
|
|
<pre><span num="2">Snippet</span>
|
|
</pre>
|
|
</div>
|
|
<p>Highlight:</p>
|
|
<div class="code">
|
|
<pre><span num="1">code file</span>
|
|
<span num="2">Snippet</span>
|
|
<span num="3"><b>important</b></span>
|
|
</pre>
|
|
</div>
|
|
</section>
|