joplin-plugin-container-with-classes

1.0.0 • Public • Published

Container with Classes

Plugin for creating block-level containers with classes for Joplin notes, it is based on markdown-it-container with some changes.

::: classname1 classname2 classname3
**Bold Text**
:::

which will be rendered as follow:

<div class="classname1 classname2 classname3">
  <strong>Bold Text</strong>
</div>

For nested div the parent need to have more ":" than chils:

:::::: parentclass

Parent text

::: childclass
**Bold Text**
:::

::::::

Why do you want to use this plugin instead of directly write html tag? Because, you can't write markdown syntax within html. Using this plugin markdown text will be rendered as usual.

Examples

There is no pre-defined class, you have to define them within the note or in userstyle.css yourself. You can copy the content of examples.md to joplin to see some simple examples. It includes:

  • Multi-column Paragraph
  • Center-Aligned Paragraph
  • Always-On Drawer
  • Vertical Right-to-Left Paragraph
  • Custom Container

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i joplin-plugin-container-with-classes

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

15.3 kB

Total Files

6

Last publish

Collaborators

  • hieuthi