1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:24:41 -07:00
go/present/testdata/pre.md
Russ Cox e609210bcd present: test Markdown & fix splitting of pre blocks
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>
2020-03-23 17:17:31 +00:00

40 lines
395 B
Markdown

# Pre
##
Pre with tab:
code block
on two lines
Text with space:
now a text block
on two lines
Pre with blank line:
before
after
EOF
---
<h1>Pre</h1>
<section>
<p>Pre with tab:</p>
<pre><code>code block
on two lines
</code></pre>
<p>Text with space:</p>
<p>now a text block
on two lines</p>
<p>Pre with blank line:</p>
<pre><code>before
after
</code></pre>
<p>EOF</p>
</section>