mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
fix errors of lints
This commit is contained in:
parent
792af6819e
commit
8c6830d73b
2 changed files with 9 additions and 2 deletions
|
|
@ -13,12 +13,14 @@ type CJKOption func(*cjk)
|
||||||
type EastAsianLineBreaksStyle int
|
type EastAsianLineBreaksStyle int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// EastAsianLineBreaksStyleSimple is a style where soft line breaks are ignored
|
||||||
|
// if both sides of the break are east asian wide characters.
|
||||||
EastAsianLineBreaksStyleSimple EastAsianLineBreaksStyle = iota
|
EastAsianLineBreaksStyleSimple EastAsianLineBreaksStyle = iota
|
||||||
|
// EastAsianLineBreaksCSS3Draft is a style where soft line breaks are ignored
|
||||||
|
// even if only one side of the break is an east asian wide character.
|
||||||
EastAsianLineBreaksCSS3Draft
|
EastAsianLineBreaksCSS3Draft
|
||||||
)
|
)
|
||||||
|
|
||||||
type EastAsianLineBreaksFunction func()
|
|
||||||
|
|
||||||
// WithEastAsianLineBreaks is a functional option that indicates whether softline breaks
|
// WithEastAsianLineBreaks is a functional option that indicates whether softline breaks
|
||||||
// between east asian wide characters should be ignored.
|
// between east asian wide characters should be ignored.
|
||||||
func WithEastAsianLineBreaks(style ...EastAsianLineBreaksStyle) CJKOption {
|
func WithEastAsianLineBreaks(style ...EastAsianLineBreaksStyle) CJKOption {
|
||||||
|
|
|
||||||
|
|
@ -103,10 +103,15 @@ func WithHardWraps() interface {
|
||||||
// EastAsianLineBreaks is an option name used in WithEastAsianLineBreaks.
|
// EastAsianLineBreaks is an option name used in WithEastAsianLineBreaks.
|
||||||
const optEastAsianLineBreaks renderer.OptionName = "EastAsianLineBreaks"
|
const optEastAsianLineBreaks renderer.OptionName = "EastAsianLineBreaks"
|
||||||
|
|
||||||
|
// A EastAsianLineBreaksStyle is a style of east asian line breaks.
|
||||||
type EastAsianLineBreaksStyle int
|
type EastAsianLineBreaksStyle int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// EastAsianLineBreaksStyleSimple is a style where soft line breaks are ignored
|
||||||
|
// if both sides of the break are east asian wide characters.
|
||||||
EastAsianLineBreaksStyleSimple EastAsianLineBreaksStyle = iota
|
EastAsianLineBreaksStyleSimple EastAsianLineBreaksStyle = iota
|
||||||
|
// EastAsianLineBreaksCSS3Draft is a style where soft line breaks are ignored
|
||||||
|
// even if only one side of the break is an east asian wide character.
|
||||||
EastAsianLineBreaksCSS3Draft
|
EastAsianLineBreaksCSS3Draft
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue