All Projects → favoloso → remarkable-admonitions

favoloso / remarkable-admonitions

Licence: MIT license
Add admonitions support to Remarkable

Programming Languages

typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to remarkable-admonitions

remark-admonitions
Add admonitions support to Remarkable
Stars: ✭ 90 (+143.24%)
Mutual labels:  callout, docusaurus
pretty-remarkable
Plugin for prettifying markdown with https://github.com/jonschlinkert/remarkable using custom renderer rules.
Stars: ✭ 22 (-40.54%)
Mutual labels:  remarkable
FellowStories
A platform for MLH Fellows to share their stories and experiences
Stars: ✭ 13 (-64.86%)
Mutual labels:  docusaurus
FivePD-API
A wrapper that allows you to create FivePD callouts/plugins.
Stars: ✭ 17 (-54.05%)
Mutual labels:  callout
docker-docusaurus
A docker image for running Docusaurus 2, which is a development version yet, based on lightweight Alpine Linux.
Stars: ✭ 21 (-43.24%)
Mutual labels:  docusaurus
notes
Simple text editor for your Markdown and LaTeX notes.
Stars: ✭ 24 (-35.14%)
Mutual labels:  remarkable
questdb.io
The official QuestDB website, database documentation and blog.
Stars: ✭ 75 (+102.7%)
Mutual labels:  docusaurus
generator-create-docusaurus
A generator for new docusaurus projects.
Stars: ✭ 13 (-64.86%)
Mutual labels:  docusaurus
recrossable
crossword game with simplistic handwriting recognition and automatic generation of crosswords
Stars: ✭ 36 (-2.7%)
Mutual labels:  remarkable
Apex-Integration-Services
Apex REST Callouts, Apex SOAP Callouts, Apex Web Services
Stars: ✭ 36 (-2.7%)
Mutual labels:  callout
electronjs.org-new
No description or website provided.
Stars: ✭ 16 (-56.76%)
Mutual labels:  docusaurus
gitbook-plugin-flexible-alerts
GitBook plugin to convert blockquotes into beautiful and configurable alerts using preconfigured or own styles and alert types.
Stars: ✭ 29 (-21.62%)
Mutual labels:  callout
noteto
Template Tool for the reMarkable tablet (and maybe others?)
Stars: ✭ 30 (-18.92%)
Mutual labels:  remarkable
mr-pdf
PDF generator of document website
Stars: ✭ 58 (+56.76%)
Mutual labels:  docusaurus
remarkable-calendar-creator
Create calendars to display on a reMarkable device as the suspend screen or to write notes on, including events from your own online iCal calendar
Stars: ✭ 28 (-24.32%)
Mutual labels:  remarkable
web-analytics-handbook
Handbook - Rendezvous between developers and web data
Stars: ✭ 23 (-37.84%)
Mutual labels:  docusaurus
UnitedCallouts
UnitedCallouts adds over 20+ callouts for LSPDFR, a popular GTA V modification.
Stars: ✭ 14 (-62.16%)
Mutual labels:  callout
pedax
Reversi Board with edax, which is the strongest reversi engine.
Stars: ✭ 18 (-51.35%)
Mutual labels:  docusaurus
latex-awesomebox
A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)
Stars: ✭ 33 (-10.81%)
Mutual labels:  admonition
plato
Document reader
Stars: ✭ 117 (+216.22%)
Mutual labels:  remarkable

remarkable-admonitions

Travis (.com) Codecov npm

Adds admonitions parsing support to Remarkable. (There's also a React component)

Installation

With npm:

npm install --save remarkable-admonitions

or with Yarn:

yarn add remarkable-admonitions

Usage

import Remarkable from 'remarkable';
const md = new Remarkable();

import admonitions from 'remarkable-admonitions';
md.use(admonitions());

md.render(`
:::caution
Beware Ogre
:::
`);
/* ->
    <div class="admonition admonition-caution">
      <div class="admonition-heading">
        <h5><div class="admonition-icon">🔥</div> caution</h5>
      </div>
      <div class="admonition-content">
        <p>Beware Ogre</p>
      </div>
    </div>
*/

Supported admonition types are: caution, note, important, tip, warning.

By default block title is the admonition type. You can provide a custom title after the opening tag:

:::note This is my custom title
A note.
:::

With Docusaurus

If you are using Docusaurus, you can load the plugin in siteConfig.js:

const siteConfig = {
  // ...
  markdownPlugins: [
    // Highlight admonitions.
    require('remarkable-admonitions')({ icon: 'svg-inline' })
  ]
};

There is a style developed to match its visual appearence (the same you can see in the preview image up here). Due to Docusaurus CSS loading system, you need to download the css from docusaurus-admonitions.css and place it into your custom/ folder.

Options

You may configure this plugin with the following options:

Option Default Description
icon emoji Allows to use a different method to render admonition icons. By default it uses emoji (unicode Emojis). Choose svg-inline to use Octicons.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].