Coder Social home page Coder Social logo

Disable default schemas about linkify-it HOT 9 CLOSED

markdown-it avatar markdown-it commented on August 29, 2024
Disable default schemas

from linkify-it.

Comments (9)

puzrin avatar puzrin commented on August 29, 2024

https://github.com/markdown-it/linkify-it#addschema-definition

.add('ftp:', null)

from linkify-it.

Kagami avatar Kagami commented on August 29, 2024

Thanks, but what about disabling all default schemas?

from linkify-it.

vyp avatar vyp commented on August 29, 2024

@Kagami a loop? (if I understand correctly?)

from linkify-it.

Kagami avatar Kagami commented on August 29, 2024

@vyp Loop over that? If I hardcode current default schemas, it's possible there would be new in the future. Or I just can loop through internal __schemas__ property but I meant some official API.

from linkify-it.

puzrin avatar puzrin commented on August 29, 2024

If you need new functionality - provide examples, why it will be useful for all. I can't imagine how full reset can be used.

from linkify-it.

vyp avatar vyp commented on August 29, 2024

@Kagami you're correct. I don't think there is an api for this right now.

@puzrin I think kagami wants to ensure that only http(s) links are linkified, ignoring all other schemas.

from linkify-it.

Kagami avatar Kagami commented on August 29, 2024

I think kagami wants to ensure that only http(s) links are linkified, ignoring all other schemas.

Yea, sorry if it was unclear. I want to have some whitelisted protocols and make sure new versions of linkify-it won't automatically add new default schemas.

from linkify-it.

puzrin avatar puzrin commented on August 29, 2024

You can be sure, that default list will not be extended. I think that will not happen even after major version bump.

from linkify-it.

Kagami avatar Kagami commented on August 29, 2024

Ok, thanks!

from linkify-it.

Related Issues (20)

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.