github.com/yuin/goldmark/extension.TypographerConfig.Substitutions (field)
25 uses
github.com/yuin/goldmark/extension (current package)
typographer.go#L66: Substitutions [][]byte
typographer.go#L89: b.Substitutions = value.([][]byte)
typographer.go#L113: p.Substitutions = o.value
typographer.go#L153: Substitutions: newDefaultSubstitutions(),
typographer.go#L171: if s.Substitutions[EmDash] != nil && line[1] == '-' && line[2] == '-' { // ---
typographer.go#L172: node := gast.NewString(s.Substitutions[EmDash])
typographer.go#L178: if s.Substitutions[Ellipsis] != nil && line[1] == '.' && line[2] == '.' { // ...
typographer.go#L179: node := gast.NewString(s.Substitutions[Ellipsis])
typographer.go#L189: if s.Substitutions[LeftAngleQuote] != nil && line[1] == '<' { // <<
typographer.go#L190: node := gast.NewString(s.Substitutions[LeftAngleQuote])
typographer.go#L197: if s.Substitutions[RightAngleQuote] != nil && line[1] == '>' { // >>
typographer.go#L198: node := gast.NewString(s.Substitutions[RightAngleQuote])
typographer.go#L204: } else if s.Substitutions[EnDash] != nil && c == '-' && line[1] == '-' { // --
typographer.go#L205: node := gast.NewString(s.Substitutions[EnDash])
typographer.go#L219: if s.Substitutions[Apostrophe] != nil {
typographer.go#L227: node := gast.NewString(s.Substitutions[Apostrophe])
typographer.go#L236: node := gast.NewString(s.Substitutions[Apostrophe])
typographer.go#L242: if s.Substitutions[LeftSingleQuote] != nil && d.CanOpen && !d.CanClose {
typographer.go#L256: node := gast.NewString(s.Substitutions[nt])
typographer.go#L261: if s.Substitutions[RightSingleQuote] != nil && counter.Single > 0 {
typographer.go#L265: node := gast.NewString(s.Substitutions[RightSingleQuote])
typographer.go#L274: if s.Substitutions[LeftDoubleQuote] != nil && d.CanOpen && !d.CanClose {
typographer.go#L275: node := gast.NewString(s.Substitutions[LeftDoubleQuote])
typographer.go#L281: if s.Substitutions[RightDoubleQuote] != nil && counter.Double > 0 {
typographer.go#L289: node := gast.NewString(s.Substitutions[RightDoubleQuote])
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |