1
0
mirror of https://github.com/golang/go synced 2024-11-05 17:06:13 -07:00
go/present/testdata
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
..
basic.md present: test Markdown & fix splitting of pre blocks 2020-03-23 17:17:31 +00:00
basic.p present: add end-to-end rendering test 2020-03-23 17:17:23 +00:00
code.md present: test Markdown & fix splitting of pre blocks 2020-03-23 17:17:31 +00:00
code.p present: add end-to-end rendering test 2020-03-23 17:17:23 +00:00
code.txt present: add end-to-end rendering test 2020-03-23 17:17:23 +00:00
list.md present: test Markdown & fix splitting of pre blocks 2020-03-23 17:17:31 +00:00
list.p present: add end-to-end rendering test 2020-03-23 17:17:23 +00:00
media.html present: add end-to-end rendering test 2020-03-23 17:17:23 +00:00
media.md present: test Markdown & fix splitting of pre blocks 2020-03-23 17:17:31 +00:00
media.p present: add end-to-end rendering test 2020-03-23 17:17:23 +00:00
pre.md present: test Markdown & fix splitting of pre blocks 2020-03-23 17:17:31 +00:00
pre.p present: add end-to-end rendering test 2020-03-23 17:17:23 +00:00
README present: add end-to-end rendering test 2020-03-23 17:17:23 +00:00

This directory contains test data for present's TestTestdata.
Each file named *.p or *.md is expected to contain a present
article, then a --- line, then the HTML output for that article.

By convention, testdata files with a .p extension use legacy present
syntax, while testdata file with a .md extension use Markdown.
This is only a convention: the Markdown syntax must still begi
with "# " to be recognized as Markdown by the present parser.

Other files in this directory are supporting files for the articles.