MDNotebook
extends Nodebook
"MDNotebook" is a special class used for .md
(Markdown) files.
Usage
Setup
note(value)
Similar to addLine()
but it does not automatically create an indent.
value
:
The value to add in the markdown file. Can be anything. Required
createHeader(value, options)
Creates a header inside the file.
string value
:
The value that the header will be. Required
object options
:
options.type
: The type of header to add. Defaults to h1.
createLink(url, text)
Creates a link inside the markdown file.
string url
:
The URL that the link points to. Required
text
:
The text that, when clicked redirects to the URL. Optional.
createList(list, options)
Creates a list inside the markdown file.
array list
:
An array of items to be added to the list.
object options
:
options.type
: The type of list. Ifunordered
, list starts with a • . Ifordered
, list goes up numerically. Defaults tounordered
.
Last updated