Documentation ¶
Overview ¶
Package md provides common markdown utilities, used by build-tools and learn platform.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶ added in v0.1.127
Copy copies the contents of the `src` directory to the `dest` directory. It skips over *.md files and returns their files names in a string slice, typically to generate HTML files from it.
func FindFiles ¶ added in v0.1.127
FindFiles finds recursively all file with .md extension in given directory and returns a slice of their names.
func HTMLFilename ¶ added in v0.1.127
HTMLFilename returns the HTML filename for a given markdown filename. README.md is converted to index.html, and all other .md files are converted .html file names with the same base name stem.
func RewriteLink ¶ added in v0.1.130
func RewriteLink(n Node)
RewriteLink replace a relative link to a .md file the HTML filename equivalent, see HTMLFilename.