Documentation
¶
Index ¶
- func ChangeImageLinksInMarkdown(markdownContent string, oldImageTags []string, newLinks []string) (string, error)
- func DownloadAndSaveImageToFs(url string, filename string) error
- func DownloadImagesAndModifyFile(path string) error
- func ExtractLinkImg(str string) (string, string)
- func ExtractUrlFromImageTag(imageTag string) string
- func GetImagesFromMarkdown(path string) []string
- func SpinUp(path string)
- func StringInArray(s string, array []string) bool
- func TrimMoreThanOneSpace(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeImageLinksInMarkdown ¶
func ChangeImageLinksInMarkdown(markdownContent string, oldImageTags []string, newLinks []string) (string, error)
Takes mardown text and returns it modifying it with the new links the *oldImageTags*
func DownloadImagesAndModifyFile ¶
path: path of the Markdown file
This function combines the functionability of multiple functions, it looks for every image link in the markdown, it downloads then in the same path as the markdown file and modifies the file to instead of pointing to the url the image tags it looks to the local fs
func ExtractLinkImg ¶
func ExtractUrlFromImageTag ¶
Takes the image tag string of markdown ** and extract the *link*
func GetImagesFromMarkdown ¶
func StringInArray ¶
func TrimMoreThanOneSpace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.