Giter Club home page Giter Club logo

shortcode-parser's People

Contributors

mendezcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

shortcode-parser's Issues

Nesting shortcodes

I realised that simple nesting of shortcodes doesn't work

var str = "This is [bold upper=true]Bold [bar]Text[/bar][/bold]!!!";

Is this implementation in your release map? :)

EBADENGINE required node version 0.10.x

I am seeing an issue in a repository due to the node version that is being set in the package.json.

In package.json:

{
  "engines": {
    "node": "0.10.x"
  },

The above is causing this error:

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '0.10.x' },
npm WARN EBADENGINE   current: { node: 'v14.18.1', npm: '8.5.5' }
npm WARN EBADENGINE }

Why is the suggested version of node set to a fixed and old version? Can this be fixed?

Thanks!

attach shortcode bindings to parser instances rather than singleton

One thing I ran into was the limitation of the shortcode functions being attached to a singleton -- it means if you want to attach different functions to the same name in different places in your code, you have to be careful.

Ideally it would be nice to have something like

var Parser = require('shortcodes-parser');  
var parser = new Parser();

where each parser instance has its own set of shortcode bindings. What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.