Documentation ¶
Index ¶
- Constants
- func EncloseHighlighting(text string, keywords []string, openMark, closeMark string, ...) (ret string)
- func GetMarkSpanEnd() string
- func GetMarkSpanStart(dataType string) string
- func MarkText(text string, keyword string, beforeLen int, caseSensitive bool) (pos int, marked string)
- func SplitKeyword(keyword string) (keywords []string)
Constants ¶
View Source
const ( TermSep = "__term@sep__" SearchMarkLeft = "__@mark__" SearchMarkRight = "__mark@__" )
View Source
const ( MarkDataType = "search-mark" VirtualBlockRefDataType = "virtual-block-ref" )
Variables ¶
This section is empty.
Functions ¶
func EncloseHighlighting ¶
func GetMarkSpanEnd ¶
func GetMarkSpanEnd() string
func GetMarkSpanStart ¶
func SplitKeyword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.