Documentation ¶
Index ¶
- func ConvertRich(t notion.RichText) string
- func ConvertRichText(t []notion.RichText) string
- type MdBlock
- type ToMarkdown
- func (tm *ToMarkdown) EnableExtendedSyntax(target string)
- func (tm *ToMarkdown) ExtendedSyntaxEnabled() bool
- func (tm *ToMarkdown) GenBlock(bType notion.BlockType, block MdBlock) error
- func (tm *ToMarkdown) GenContentBlocks(blocks []notion.Block, depth int) error
- func (tm *ToMarkdown) GenFrontMatter(writer io.Writer) error
- func (tm *ToMarkdown) GenerateTo(page notion.Page, blocks []notion.Block, writer io.Writer) error
- func (tm *ToMarkdown) WithFrontMatter(page notion.Page)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertRich ¶
func ConvertRich(t notion.RichText) string
func ConvertRichText ¶
func ConvertRichText(t []notion.RichText) string
Types ¶
type ToMarkdown ¶
type ToMarkdown struct { FrontMatter map[string]interface{} ContentBuffer *bytes.Buffer ImgSavePath string ImgVisitPath string ContentTemplate string // contains filtered or unexported fields }
func New ¶
func New() *ToMarkdown
func (*ToMarkdown) EnableExtendedSyntax ¶
func (tm *ToMarkdown) EnableExtendedSyntax(target string)
func (*ToMarkdown) ExtendedSyntaxEnabled ¶
func (tm *ToMarkdown) ExtendedSyntaxEnabled() bool
func (*ToMarkdown) GenBlock ¶
func (tm *ToMarkdown) GenBlock(bType notion.BlockType, block MdBlock) error
func (*ToMarkdown) GenContentBlocks ¶
func (tm *ToMarkdown) GenContentBlocks(blocks []notion.Block, depth int) error
func (*ToMarkdown) GenFrontMatter ¶
func (tm *ToMarkdown) GenFrontMatter(writer io.Writer) error
func (*ToMarkdown) GenerateTo ¶
func (tm *ToMarkdown) GenerateTo(page notion.Page, blocks []notion.Block, writer io.Writer) error
func (*ToMarkdown) WithFrontMatter ¶
func (tm *ToMarkdown) WithFrontMatter(page notion.Page)
Click to show internal directories.
Click to hide internal directories.