-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plaintext linkification #39
Conversation
implements #27 |
0fc7bdd
to
05e3b48
Compare
@@ -0,0 +1,15 @@ | |||
<!doctype html> | |||
<!-- open as resource://ipfs-firefox-addon-at-lidel-dot-org/data/test.html --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! It probably should be used in a dedicated test suite (test/test-linkify.js
).
So far I did manual test and got weird results:
- Run via
jpm -b vendor/firefox-45.0a2/firefox run
- I enabled at addon's
about:addons
screen:
- Visited
resource://ipfs-firefox-addon-at-lidel-dot-org/data/test.html
- Text links were not converted into
<a>
tags. The only change I was able to spot was thehref
of the "abs link", which changed from
fs:/
tohttps://ipfs.io/
I did not dig into the underlying code: perhaps it is still work in progress?
Or did I found a bug? :-)
yeah, missed a change when rebasing. should work now. I also added a test.
Eh, it bails out fairly early: https://github.com/lidel/ipfs-firefox-addon/pull/39/files#diff-d5184922475dad24022cebfa449bba33R166 |
plaintext linkification + relative/native href fix
splitting out the linkification work from the url canonization since this pretty much works while the latter is a hairy mess.