1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:54:43 -07:00
go/present
Russ Cox 657575a564 present: record info in AST for reproducing present inputs
Commands like .code now have a TemplateCmd method
that returns the original command.

The Text struct now has a Raw field set when Pre==true.
It contains the original indented text, without the tab "fixing".

This helps building tooling that reformats or rewrites present files.

For golang/go#33955.

Change-Id: Ieb036e8b509a4531d120c597b19f2158306a5352
Reviewed-on: https://go-review.googlesource.com/c/tools/+/222845
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2020-03-13 20:55:18 +00:00
..
args.go all: replace reference to plan9.bell-labs.com with 9p.io 2019-08-26 06:06:29 +00:00
caption.go present: record info in AST for reproducing present inputs 2020-03-13 20:55:18 +00:00
code_test.go all: remove many cases of space-space 2019-12-30 19:07:42 +00:00
code.go present: record info in AST for reproducing present inputs 2020-03-13 20:55:18 +00:00
doc.go present: allow line-wrapping of bullet list items 2020-03-13 20:55:15 +00:00
html.go present: record info in AST for reproducing present inputs 2020-03-13 20:55:18 +00:00
iframe.go present: record info in AST for reproducing present inputs 2020-03-13 20:55:18 +00:00
image.go present: record info in AST for reproducing present inputs 2020-03-13 20:55:18 +00:00
link_test.go go.tools/godoc/present: move present package from go.talks 2013-09-19 10:55:46 +10:00
link.go present: record info in AST for reproducing present inputs 2020-03-13 20:55:18 +00:00
parse.go present: record info in AST for reproducing present inputs 2020-03-13 20:55:18 +00:00
style_test.go present: allow markup inside punctuation connected to other text 2016-12-01 05:16:25 +00:00
style.go x/tools: simplify and format code 2017-02-28 14:15:42 +00:00
video.go present: record info in AST for reproducing present inputs 2020-03-13 20:55:18 +00:00