Markdown-it plugin for embedding podcast
const md = require('markdown-it')({
html: true,
linkify: true,
typography: true
}).use(require('markdown-it-podcast', { // <-- this use(package_name) is required
url: '',
height: 450,
auto_play: false,
hide_related: false,
show_comments: true,
show_user: true,
show_reposts: false,
visual: true
}));
This is a first version and only support SoundCloud
This only works in the inline style.
@S[soundcloud](https://soundcloud.com/platziteam/la-historia-de-platzi)
is interpreted as
<p>
<div>
<iframe width="100%" height="450" scrolling="no" frameborder="no"
src="https://w.soundcloud.com/player/?url=https://soundcloud.com/platziteam/la-historia-de-platzi&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
</div>
</p>
- Add other podcast services