github.com/yuin/goldmark/ast.Text.SoftLineBreak (method)
6 uses
github.com/yuin/goldmark/ast (current package)
inline.go#L85: func (n *Text) SoftLineBreak() bool {
inline.go#L139: n.SetSoftLineBreak(t.SoftLineBreak())
inline.go#L198: if ok && t.Segment.Stop == s.Start && !t.SoftLineBreak() {
inline.go#L209: if t, ok := prev.(*Text); ok && t.Segment.Stop == s.Start && !t.SoftLineBreak() {
github.com/yuin/goldmark/renderer/html
html.go#L613: if n.HardLineBreak() || (n.SoftLineBreak() && r.HardWraps) {
html.go#L619: } else if n.SoftLineBreak() {
![]() |
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. |