Name: ssb-markdown
Owner: Secure Scuttlebutt Consortium
Description: patchwork's markdown parser
Created: 2016-01-09 04:51:40.0
Updated: 2018-04-20 09:07:24.0
Pushed: 2018-04-20 09:07:23.0
Homepage: null
Size: 35
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
render patchwork/ssb messages to markdown.
patchwork has a few changes from standard markdown.
md = require('ssb-markdown')
Render raw markdown source
to html.
The output will be html content without a surrounding tag.
toUrl
is a function which accepts an ssb-ref or @-mention string, and whether it is for an image or not,
and returns a url string.
imageLink
is a function which accepts an ssb-ref and will be used to generate links to wrap any images.
Render raw markdown to a single line of test,
suitable for a one line preview that is opened
to a view rendered with block
.
MIT