- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for HeadingLevel (0.18 sec)
-
src/go/doc/comment/print.go
// any of the printing methods // in order to customize the details of the printing process. type Printer struct { // HeadingLevel is the nesting level used for // HTML and Markdown headings. // If HeadingLevel is zero, it defaults to level 3, // meaning to use <h3> and ###. HeadingLevel int // HeadingID is a function that computes the heading ID // (anchor tag) to use for the heading h when generating
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.6K bytes - Viewed (0) -
src/go/doc/comment/testdata/head3.txt
{"HeadingLevel": 5} -- input -- # Heading -- markdown -- ##### Heading {#hdr-Heading} -- html --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:46 UTC 2022 - 131 bytes - Viewed (0) -
src/go/doc/comment/html.go
case *Paragraph: if !p.tight { out.WriteString("<p>") } p.text(out, x.Text) out.WriteString("\n") case *Heading: out.WriteString("<h") h := strconv.Itoa(p.headingLevel()) out.WriteString(h) if id := p.headingID(x); id != "" { out.WriteString(` id="`) p.escape(out, id) out.WriteString(`"`) } out.WriteString(">") p.text(out, x.Text)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 3.5K bytes - Viewed (0) -
src/go/doc/comment/markdown.go
// See the [Printer] documentation for ways to customize the Markdown output. func (p *Printer) Markdown(d *Doc) []byte { mp := &mdPrinter{ Printer: p, headingPrefix: strings.Repeat("#", p.headingLevel()) + " ", } var out bytes.Buffer for i, x := range d.Content { if i > 0 { out.WriteByte('\n') } mp.block(&out, x) } return out.Bytes() } // block prints the block x to out.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:48 UTC 2022 - 4.4K bytes - Viewed (0)