mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Remove unused global code
This commit is contained in:
parent
9e0189df27
commit
af880df797
3 changed files with 0 additions and 10 deletions
|
|
@ -45,11 +45,6 @@ type Attribute struct {
|
||||||
Value interface{}
|
Value interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
var attrNameIDS = []byte("#")
|
|
||||||
var attrNameID = []byte("id")
|
|
||||||
var attrNameClassS = []byte(".")
|
|
||||||
var attrNameClass = []byte("class")
|
|
||||||
|
|
||||||
// A Node interface defines basic AST node functionalities.
|
// A Node interface defines basic AST node functionalities.
|
||||||
type Node interface {
|
type Node interface {
|
||||||
// Type returns a type of this node.
|
// Type returns a type of this node.
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ package parser
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"regexp"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/yuin/goldmark/ast"
|
"github.com/yuin/goldmark/ast"
|
||||||
|
|
@ -113,8 +112,6 @@ func (s *linkParser) Trigger() []byte {
|
||||||
return []byte{'!', '[', ']'}
|
return []byte{'!', '[', ']'}
|
||||||
}
|
}
|
||||||
|
|
||||||
var linkDestinationRegexp = regexp.MustCompile(`\s*([^\s].+)`)
|
|
||||||
var linkTitleRegexp = regexp.MustCompile(`\s+(\)|["'\(].+)`)
|
|
||||||
var linkBottom = NewContextKey()
|
var linkBottom = NewContextKey()
|
||||||
|
|
||||||
func (s *linkParser) Parse(parent ast.Node, block text.Reader, pc Context) ast.Node {
|
func (s *linkParser) Parse(parent ast.Node, block text.Reader, pc Context) ast.Node {
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,6 @@ func (s *rawHTMLParser) parseSingleLineRegexp(reg *regexp.Regexp, block text.Rea
|
||||||
return node
|
return node
|
||||||
}
|
}
|
||||||
|
|
||||||
var dummyMatch = [][]byte{}
|
|
||||||
|
|
||||||
func (s *rawHTMLParser) parseMultiLineRegexp(reg *regexp.Regexp, block text.Reader, pc Context) ast.Node {
|
func (s *rawHTMLParser) parseMultiLineRegexp(reg *regexp.Regexp, block text.Reader, pc Context) ast.Node {
|
||||||
sline, ssegment := block.Position()
|
sline, ssegment := block.Position()
|
||||||
if block.Match(reg) {
|
if block.Match(reg) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue