Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: marked
node v16.18.0
endpoint
share
tweet
var marked = require("marked") marked.use({ walkTokens(token) { if (token.type === 'link') { token.href = 'https://external.domain/some/path' + token.href; } } }); marked('[some_link](/i/want/to/go/there)');
Created from: https://npm.runkit.com/marked
Loading…
Clone and edit this document