Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanElement ¶
func CleanElement(elem *colly.HTMLElement) string
Returns element preserving inner tags (strong, a, ...)
Types ¶
type Article ¶
type Article struct { Title string Published string ReadTime string Content []Element Tags []string }
func (Article) ToHtmlFile ¶
func (Article) ToMarkdown ¶
func (Article) ToMarkdownFile ¶
type Blockquote ¶
func (*Blockquote) GetName ¶
func (elem *Blockquote) GetName() string
func (Blockquote) ToHTML ¶
func (b Blockquote) ToHTML() string
func (Blockquote) ToMarkdown ¶
func (b Blockquote) ToMarkdown() string
type CodeBlock ¶
func (CodeBlock) ToMarkdown ¶
type Element ¶
func ExtractDataArticle ¶
func ExtractDataArticle(elem *colly.HTMLElement) Element
type Image ¶
func (Image) ToMarkdown ¶
type List ¶
func (List) ToMarkdown ¶
type P ¶
func (P) ToMarkdown ¶
type PlaceHolder ¶
type PlaceHolder struct { Name string Elem colly.HTMLElement }
func (*PlaceHolder) GetName ¶
func (elem *PlaceHolder) GetName() string
func (PlaceHolder) ToHTML ¶
func (p PlaceHolder) ToHTML() string
func (PlaceHolder) ToMarkdown ¶
func (p PlaceHolder) ToMarkdown() string
Click to show internal directories.
Click to hide internal directories.