git ssb

2+

cel / scuttlebot.io



Tree: 705c88d9fdabff0e4d72076046f98bd31e8ef60c

Files: 705c88d9fdabff0e4d72076046f98bd31e8ef60c / tmpl / apis / modules / ssb-markdown.md

1007 bytesRaw

ssb-markdown

render patchwork/ssb messages to markdown.

patchwork has a few changes from standard markdown.

api

var md = require('ssb-markdown')

md.block(source, mentions)

Render raw markdown source to html. The output will be html content without a surrounding tag. mentions is an array of ssb-links
If a @NAME matches a mention link to {name: NAME, link: @PUBKEY }
then that mention will be rendered as a link to @PUBKEY.

md.inline (source)

Render raw markdown to a single line of test, suitable for a one line preview that is opened to a view rendered with block.

License

MIT

Built with git-ssb-web