Skip to content

This is plugin for remarkable to share tweet as a screenshot with tiny code

License

Notifications You must be signed in to change notification settings

Shinyaigeek/remarkable-plugin-tweet-share

Repository files navigation

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