remarkable-plugin-tweet-share
v1.0.0
Published
## Feature ✨
Downloads
95
Maintainers
Readme
Remarkable plugin tweet share
Feature ✨
This is plugin for remarkable. This plugin will allow you to share tweet in markdown with tiny code and without script to embed tweet, like
!tweet[](tweet url)
For Example,
!tweet()[https://twitter.com/Shinyaigeek/status/1363426871950536705?s=20]
above markdown will be parsed into
<a href="https://twitter.com/Shinyaigeek/status/1363426871950536705?s=20">
<img src="https://tweet2image.vercel.app/1363426871950536705.jpg" alt="">
</a>
and rendered as
.
Usage
!tweet[img's alt](tweet url)
yarn add remarkable-plugin-tweet-share remarkable -D
and
import { Remarkable } from "remarkable";
import { tweetMacroPlugin } from "remarkable-plugin-tweet-share";
const md = new Remarkable();
md.use(tweetMacroPlugin);
md.render(html);
LICENSE
MIT