Showdown extension to allow shorthanded internal links, using Wiki style [[link]] or [[link address|link name]].
Escapes HTML characters and provides the ability to configure how internal links will be prefixed and suffixed.
<script src="/path/to/showdown/src/showdown.js"></script>
<script src="/path/to/showdown-intlink-filter.js"></script>
var converter = new showdown.Converter({extensions: ['intlink']});
window.Showdown.extensions.intlinkConfig({
pathPrefix : '/images/',
pathSuffix : '.jpg'
};
var showdown = require('showdown');
var linkFilter = require('../showdown-intlink-filter').intlink;
var converter = new showdown.Converter({extensions: [linkFilter]});
require('../showdown-intlink-filter').intlinkConfig({
pathPrefix : '/images/',
pathSuffix : '.jpg'
};