remarkable-plugin-tweet-share
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i remarkable-plugin-tweet-share

Weekly Downloads

25

Version

1.0.0

License

MIT

Unpacked Size

303 kB

Total Files

23

Last publish

Collaborators

  • shinyaigeek