1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:04:44 -07:00
go/present/testdata/media.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

23 lines
417 B
Markdown

# Media
##
.image gopher.jpg _ 100
.caption A gopher.
.iframe https://golang.org/
.link https://golang.org/ The Gopher's home.
.html testdata/media.html
---
<h1>Media</h1>
<section>
<img src="gopher.jpg" width="100" alt="">
<figcaption>A gopher.</figcaption>
<iframe src="https://golang.org/"></iframe>
<p class="link"><a href="https://golang.org/">The Gopher&#39;s home.</a></p>
<!-- media.html -->
</section>