Documentation ¶
Index ¶
- func DocToJSON(doc *docs.Document, imageFolder string, supportCodeBlock bool, breakPages bool) ([]Page, []*TocHeading)
- func JSONToMD(json []Tag) string
- func ReplaceImage(fullURLFile string) (string, []byte)
- type CodeBlock
- type ImageObject
- type Page
- type Table
- type Tag
- type TagContent
- type TocHeading
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocToJSON ¶
func DocToJSON(doc *docs.Document, imageFolder string, supportCodeBlock bool, breakPages bool) ([]Page, []*TocHeading)
DocToJSON Convert docs api response to json
func ReplaceImage ¶
ReplaceImage fetch image from the link
Types ¶
type ImageObject ¶
type Tag ¶
type Tag struct { Name string Content TagContent }
type TagContent ¶
type TagContent struct { Text string Image ImageObject Table CodeBlock List []string }
type TocHeading ¶
type TocHeading struct { HeadingID string `json:"headingId"` Text string `json:"text"` Indent float64 `json:"indent"` Items []*TocHeading `json:"items"` }
Click to show internal directories.
Click to hide internal directories.