all repos — grayfriday @ d0d854958e924057b72e090b0adfb2b0cef2c3b6

blackfriday fork with a few changes

Fix up method documentation formatting.
Caleb Spare cespare@gmail.com
Thu, 22 Nov 2012 12:12:08 -0800
commit

d0d854958e924057b72e090b0adfb2b0cef2c3b6

parent

585af8ba49d625d8960bbc1a44c790dabbd6df64

1 files changed, 16 insertions(+), 18 deletions(-)

jump to
M html.gohtml.go

@@ -216,24 +216,22 @@ attrEscape(out, text)

out.WriteString("</code></pre>\n") } -/* - * GitHub style code block: - * - * <pre lang="LANG"><code> - * ... - * </pre></code> - * - * Unlike other parsers, we store the language identifier in the <pre>, - * and don't let the user generate custom classes. - * - * The language identifier in the <pre> block gets postprocessed and all - * the code inside gets syntax highlighted with Pygments. This is much safer - * than letting the user specify a CSS class for highlighting. - * - * Note that we only generate HTML for the first specifier. - * E.g. - * ~~~~ {.python .numbered} => <pre lang="python"><code> - */ +// GitHub style code block: +// +// <pre lang="LANG"><code> +// ... +// </pre></code> +// +// Unlike other parsers, we store the language identifier in the <pre>, +// and don't let the user generate custom classes. +// +// The language identifier in the <pre> block gets postprocessed and all +// the code inside gets syntax highlighted with Pygments. This is much safer +// than letting the user specify a CSS class for highlighting. +// +// Note that we only generate HTML for the first specifier. +// E.g. +// ~~~~ {.python .numbered} => <pre lang="python"><code> func (options *Html) BlockCodeGithub(out *bytes.Buffer, text []byte, lang string) { doubleSpace(out)