Comments (7)
Looks like markedjs does not recognize ipv6 addresses:
> marked("http://any.txt https://[205:2c4b:693e:44fb:635f:9dae:510:aa1f] sasdw wewe")
"<p><a href="http://any.txt">http://any.txt</a> https://[205:2c4b:693e:44fb:635f:9dae:510:aa1f] sasdw wewe</p>"
from zerome.
Opened an issue for it: markedjs/marked#1763
from zerome.
Looks like an earlier version of marked does turn ipv6 urls to links:
ZeroTalk (Marked 2014 version):
> marked("IPv4 url: http://127.0.0.1/index.html\n IPv6 url: https://[205:2c4b:693e:44fb:635f:9dae:510:aa1f]/\n")
< "<p>IPv4 url: <a href="http://127.0.0.1/index.html">http://127.0.0.1/index.html</a>
IPv6 url: <a href="https://[205:2c4b:693e:44fb:635f:9dae:510:aa1f]/">https://[205:2c4b:693e:44fb:635f:9dae:510:aa1f]/</a></p>
"
ZeroMe (Marked 2018 version):
> marked("IPv4 url: http://127.0.0.1/index.html\n IPv6 url: https://[205:2c4b:693e:44fb:635f:9dae:510:aa1f]/\n")
< "<p>IPv4 url: <a href="http://127.0.0.1/index.html">http://127.0.0.1/index.html</a>
IPv6 url: https://[205:2c4b:693e:44fb:635f:9dae:510:aa1f]/</p>
"
So we can try to revert to previous version, or replace these links with a regexp.
from zerome.
Why ZeroTalk has no problem is my question.
from zerome.
I've switched to ZeroTalk's version for ZeroMe Luna.
from zerome.
I say we should go with the Marked 2014 version.
But I must ask: What are the pros and cons of a regexp?
from zerome.
It should be fixed by dd2719c
But I must ask: What are the pros and cons of a regexp?
Later version of the marked.js lib could have bug fixes/new features (like links between < and >)
from zerome.
Related Issues (20)
- Coffeescript compile error HOT 4
- Share feature HOT 3
- night mode SHOW IMAGE background color (too bright)
- How to create a private ZeroMe HOT 1
- Migrated to New Device, Cannot Use MoonHub HOT 1
- "Three dots" menu is too hidden, make it appear always or on mouse hover over the post HOT 6
- Markdown in profile bios isn't parsed until a user's merger site is downloaded
- No merger - core/src/Ui/UiWebsocket.py line 189 > MergerSite/MergerSitePlugin.py line 159 > 136 > 49 HOT 1
- Please add a "Download previous images" option for ZeroNet profiles
- Automatically seed all images for signed in profiles.
- Editing the profile info glitches HOT 1
- I think improvements to the lightbox are necessary. HOT 1
- [Enhancement] Adopt my dark theme for ZeroMe HOT 4
- Unable to unfollow user
- #Overlay .img going off screen HOT 1
- how to build smaller zerome for just a few people?I tried move the files of this repository to data/user and modify the content.js,but it turn out to sync the original zerome's data?
- ZeroMe doesn't support RTL languages HOT 1
- No post yet
- language filter
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 zerome.