Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for headingID (0.26 sec)

  1. src/go/doc/comment/print.go

    	// 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
    	// HTML and Markdown. If HeadingID returns an empty string,
    	// then the heading ID is omitted.
    	// If HeadingID is nil, h.DefaultID is used.
    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/html.go

    		fmt.Fprintf(out, "?%T", x)
    
    	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)
  3. src/go/doc/comment/markdown.go

    	switch x := x.(type) {
    	default:
    		fmt.Fprintf(out, "?%T", x)
    
    	case *Paragraph:
    		p.text(out, x.Text)
    		out.WriteString("\n")
    
    	case *Heading:
    		out.WriteString(p.headingPrefix)
    		p.text(out, x.Text)
    		if id := p.headingID(x); id != "" {
    			out.WriteString(" {#")
    			out.WriteString(id)
    			out.WriteString("}")
    		}
    		out.WriteString("\n")
    
    	case *Code:
    		md := x.Text
    		for md != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:48 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  4. api/go1.19.txt

    pkg go/doc/comment, type Printer struct, DocLinkBaseURL string #51082
    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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/rsc.io/markdown/heading.go

    }
    
    func (b *Heading) printMarkdown(buf *bytes.Buffer, s mdState) {
    	// TODO: handle setext headings properly.
    	buf.WriteString(s.prefix)
    	for i := 0; i < b.Level; i++ {
    		buf.WriteByte('#')
    	}
    	buf.WriteByte(' ')
    	// The prefix has already been printed for this line of text.
    	s.prefix = ""
    	b.Text.printMarkdown(buf, s)
    	if b.ID != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/build/relnote/relnote.go

    			},
    		},
    	}
    }
    
    // removeEmptySections removes headings with no content. A heading has no content
    // if there are no blocks between it and the next heading at the same level, or the
    // end of the document.
    func removeEmptySections(bs []md.Block) []md.Block {
    	res := bs[:0]
    	delta := 0 // number of lines by which to adjust positions
    
    	// Remove preceding headings at same or higher level; they are empty.
    	rem := func(level int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. pkg/test/framework/features/README.md

    ## Writing a Test Stub
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

            }
        }
    
        private void addAnchorsForHeadings(Document document) {
            // add anchors for all of the headings
            for (Element heading : document.body().select("h2,h3,h4")) {
                String anchorName = heading.text().toLowerCase().replaceAll(" ", "-");
                heading.attr("id", anchorName);
            }
        }
    
        public void setJqueryFiles(Set<File> jqueryFiles) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 05:15:02 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. src/go/doc/headscan.go

    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    /*
    The headscan command extracts comment headings from package files;
    it is used to detect false positives which may require an adjustment
    to the comment formatting heuristics in comment.go.
    
    Usage: headscan [-root root_directory]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 21:50:52 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  10. doc/next/6-stdlib/99-minor/0-heading.md

    Jonathan Amsterdam <******@****.***> 1705947607 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 16:44:53 UTC 2024
    - 60 bytes
    - Viewed (0)
Back to top