You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatting:
_italic_
*bold*
`program`
Markup—_especially_italic_text_—can easily be overused.
_Why_use_scoped__ptr_? Use plain ***ptr* instead.
Visit [[https://golang.org][the Go home page]].
This syntax is not parsed in the talks displayed at https://go.dev/talks. Some examples of the breakage:
It seems the relevant parsing/conversion happens in present.Style:
// Style returns s with HTML entities escaped and font indicators turned into// HTML font tags.funcStyle(sstring) template.HTML {
returntemplate.HTML(font(html.EscapeString(s)))
}
// font returns s with font indicators turned into HTML font tags.funcfont(sstring) string { ... }
x/website/internal/web defines a wrapper around it:
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Jan 18, 2022
With no "presentStyle" template defined, the template function with
the same name (defined in the internal/web package) starts to be used
in its place. Unlike the no-op wrapper template, the template function
correctly processes some of the legacy present syntax.
Fixesgolang/go#50664.
Change-Id: I8a673e511b326f5c4f8a3a2666a2d1e65b5995ce
Reviewed-on: https://go-review.googlesource.com/c/website/+/379035
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
https://go.dev/talks hosts some Go talks, many of which use the legacy present syntax (rather than the newer Markdown syntax). The legacy present syntax supports some formatting features, such as:
This syntax is not parsed in the talks displayed at https://go.dev/talks. Some examples of the breakage:
This syntax is correctly parsed by
golang.org/x/tools/cmd/present
tool, so this is an x/website-specific bug.The text was updated successfully, but these errors were encountered: