6.0.0 • Published 2 years ago

europa-plugin-list v6.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

europa-plugin-list

A Europa plugin to convert HTML tags to Markdown lists.

Build Status License Release

Install

Install using your preferred package manager. For example;

$ npm install --save europa-plugin-list

Then, in order to activate this plugin;

// Import europa-core implementation (e.g. `europa`, `node-europa`)
import plugin from 'europa-plugin-list';

Europa.registerPlugin(plugin);
// ...

However, this plugin belongs to the europa-preset-default, which is registered with all Europa Core implementations by default, so you should not need to do anything to use this plugin.

Converted Tags

The following HTML tags are converted by this plugin:

  • LI
  • OL
  • UL

Examples

Ordered

HTML:

<ol>
  <li>First</li>
  <li>Second
    <ol>
      <li>Nested</li>
    </ol>
  </li>
  <li>Third</li>
</ol>

Markdown:

1. First
2. Second
  1. Nested
3. Third

Unordered

HTML:

<ul>
  <li>First</li>
  <li>Second
    <ul>
      <li>Nested</li>
    </ul>
  </li>
  <li>Third</li>
</ul>

Markdown:

* First
* Second
  * Nested
* Third

Bugs

If you have any problems with this Europa plugin or would like to see changes currently in development you can do so here.

Contributors

If you want to contribute, you're a legend! Information on how you can do so can be found in CONTRIBUTING.md. We want your suggestions and pull requests!

A list of Europa contributors can be found in AUTHORS.md.

License

Copyright © 2022 neocotic

See LICENSE.md for more information on our MIT license.