Comments (3)
I considered such feature on design phase, but decided to not mix pattern search and creating html. For example, you can't just wrap links in any text as you described, but you should escape the rest too. Those demands are very specific to application needs and it's better to keep those separate.
from linkify-it.
Would you take a PR to add an example to the readme then?
from linkify-it.
I'd prefer to keep such task/info separate to keep readme as short as possible. Simple string replacement will be unsafe, and correct manipulation with DOM/AST will not be universal for good example.
May be i don't know some simple solution, but with my current knowledge i can't promiss accepting of such PR.
from linkify-it.
Related Issues (20)
- url not matched when it contains `...:` HOT 3
- options to escape a particular link? HOT 1
- Schema keys are case-insensitive, but only in one direction? HOT 3
- Add .app TLD to tlds_default HOT 6
- Parsed incorrectly when the link ends with the closing parenthesis in Chinese
- Colon after URL is included into URL, when using markdown-it with `linkify: true` HOT 1
- How to return 0 in the validate function ? HOT 1
- Links preceded by emojis are not rendered
- Router admin login IP disclosed in source code HOT 1
- Error: Namespace 'LinkifyIt' has no exported member 'LinkifyIt' HOT 3
- Change default protocol in fuzzyLink option HOT 2
- Doesn't seem to support domain-specific rules HOT 1
- Inconsistent link recognition when wrapped within html element HOT 2
- Matching URL's that contain spaces %20 HOT 2
- url with !! is not detected correctly HOT 1
- Email links followed by a hyphen are not detected HOT 5
- URLs with period and parantheses stop before closing parentheses HOT 3
- Links with "_" in the domain name are not regarded as links HOT 2
- Links that are containing '?' are not detected HOT 1
- Links with slashes capturing trailing semicolons HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkify-it.