Giter Club home page Giter Club logo

md-attr-parser's People

Contributors

arobase-che avatar hypercubed avatar rivy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

hypercubed

md-attr-parser's Issues

License clarification

Hi and thanks for your great work!
I have a question about the license, in the package.json it's mentioned as "GPL-3.0-or-later", however in the documentation of both md-attr-parser and remark-attr it's stated MIT.

Which one to go with?

Allow curly brackets in attributes...

I've found that md-attr-parser (and therefore remark-attr) does not support curly brackets in attributes. For example, this fails to parse:

const mdAttrParser = require("md-attr-parser")
mdAttrParser(`{ data-json='{ "key": "value" }' }`);

Is this something we can or should fix in md-attr-parser?

Should interpret keys without values as `true`

Hello again,

Do you think (as I do) that keys without a value should return true?

For example parseAttr('{ thisKey }') should result in { thisKey: true }. This is consistant with how HTML attribues work. <input disabled> is the same as <input disabled="true">.

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.