Skip to content

Latest commit

 

History

History
97 lines (86 loc) · 1.4 KB

marks.md

File metadata and controls

97 lines (86 loc) · 1.4 KB

Marks

Marks can used with text nodes (or strings) to apply formatting and hyperlinks.

Most (but not all) marks can be combined, e.g.

emphasis(link(strong('wow'), 'http://example.com')))

wow

code

code(textContent)
code('var x = 1;')

var x = 1;

color

color(textContent, color)
color('colorful', '#cc00ee')

Text color example

emphasis

aliases: em or i

emphasis(textContent)
emphasis('wow')

wow

link

alias: a

link(textContent, url)
link('Click here', 'http://example.com')

Click here

strike

alias: s

strike(textContent)
strike('wrong')

wrong

strong

alias: b

strong(textContent)
strong('important')

important

subscript

alias: sub

subscript(textContent)
subscript('down here')

down here

superscript

alias: sup

superscript(textContent)
superscript('up here')

up here

underline

alias: u

underline(textContent)
underline('underlined')

Underline example