mendezcode / shortcode-parser Goto Github PK
View Code? Open in Web Editor NEWShortcode parser written in JavaScript
License: MIT License
Shortcode parser written in JavaScript
License: MIT License
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? :)
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!
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.