Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for HeadingLevel (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. api/go1.19.txt

    pkg go/doc/comment, type Printer struct, DocLinkURL func(*DocLink) string #51082
    pkg go/doc/comment, type Printer struct, HeadingID func(*Heading) string #51082
    pkg go/doc/comment, type Printer struct, HeadingLevel int #51082
    pkg go/doc/comment, type Printer struct, TextCodePrefix string #51082
    pkg go/doc/comment, type Printer struct, TextPrefix string #51082
    pkg go/doc/comment, type Printer struct, TextWidth int #51082
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Parser.Words", Field, 19},
    		{"Plain", Type, 19},
    		{"Printer", Type, 19},
    		{"Printer.DocLinkBaseURL", Field, 19},
    		{"Printer.DocLinkURL", Field, 19},
    		{"Printer.HeadingID", Field, 19},
    		{"Printer.HeadingLevel", Field, 19},
    		{"Printer.TextCodePrefix", Field, 19},
    		{"Printer.TextPrefix", Field, 19},
    		{"Printer.TextWidth", Field, 19},
    		{"Text", Type, 19},
    	},
    	"go/format": {
    		{"Node", Func, 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top