Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #16 from cespare/blockcodegithub_doc_fix

Fix up method documentation formatting for the BlockCodeGithub method.
  • Loading branch information...
commit 3c0965e698ef648c6bcd7284eaea0f64337e4536 2 parents 585af8b + a25d9a5
@russross authored
Showing with 16 additions and 18 deletions.
  1. +16 −18 html.go
View
34 html.go
@@ -216,24 +216,22 @@ func (options *Html) BlockCodeNormal(out *bytes.Buffer, text []byte, lang string
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>
+// ...
+// </code></pre>
+//
+// 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)

0 comments on commit 3c0965e

Please sign in to comment.
Something went wrong with that request. Please try again.