Justin Tormey
1d52bfeb81
Fix formatting
2020-07-27 12:46:26 -05:00
Justin Tormey
b1f6c04eef
Add parser support for iodata and safe iodata
2020-07-27 12:42:51 -05:00
Alex Gleason
7c6cff9f8c
Don't parse mentions inside links
...
Fixes: https://git.pleroma.social/pleroma/pleroma/-/issues/1656
2020-06-30 16:29:32 -05:00
Egor Kislitsyn
14b8f39160
Disable strip_prefix
by default
2019-07-11 20:08:30 +07:00
Egor Kislitsyn
66f5165655
Do not add class
, target
and rel
attributes by default
2019-06-27 15:32:07 +07:00
Egor Kislitsyn
2690f2b680
Rename to Linkify
2019-06-24 17:57:31 +07:00
Egor Kislitsyn
093d2344d2
Refactor parser
...
Refactor parser
2019-06-21 20:09:52 +07:00
Egor Kislitsyn
529014c8f4
Drop phone links support
2019-06-21 19:05:47 +07:00
Egor Kislitsyn
150d9f222f
Remove scheme
setting
2019-06-21 18:09:52 +07:00
Egor Kislitsyn
6242cebdf9
Use double quotes in HTML attributes
2019-06-21 17:24:30 +07:00
Egor Kislitsyn
f081e6b553
Remove markdown links support
2019-06-21 17:12:11 +07:00
rinpatch
70cbfdc84e
Extend email? to utilize validate_tld
2019-06-18 13:25:44 +03:00
rinpatch
c19c7afa5b
Refactor url?/2 to use opts
2019-06-18 12:57:31 +03:00
rinpatch
c8026cd16c
Add an option to disable TLD validation
...
Added `validate_tld` option, which can be set to false to disable tld
validation and to :no_scheme to disable tld validation when a scheme is
present
Closes #8
2019-06-17 23:06:31 +03:00
Egor Kislitsyn
cef4fe335c
Improve parsing links inside parentheses and some refactoring
2019-06-12 15:27:18 +07:00
Egor Kislitsyn
0e6869c9ea
Fix tld validation
2019-05-01 14:48:04 +07:00
Egor Kislitsyn
7394548119
test coverage 100%! 🎉
2019-04-09 15:03:39 +07:00
Egor Kislitsyn
55636e8593
fix links inside nested html
2019-04-09 14:32:30 +07:00
Egor Kislitsyn
a6e8755863
do not link inside <pre>
and <code>
2019-04-09 13:45:55 +07:00
Egor Kislitsyn
02d7cb1eba
fix test
2019-04-09 13:20:48 +07:00
Egor Kislitsyn
4949c02cb6
fix parsing inside HTML tags
2019-04-09 13:08:13 +07:00
Egor Kislitsyn
50882b427a
support Telugu and probably other Asian scripts ( #3 )
2019-04-03 18:53:35 +07:00
Egor Kislitsyn
e862ee9d21
improve parsing ( #2 )
2019-04-03 18:05:11 +07:00
Egor Kislitsyn
df6f5dcab6
fix credo warnings
2019-04-03 14:57:06 +07:00
Haelwenn (lanodan) Monnier
4dae1eadd5
AutoLinker.BuilderTest: Add forgotten assert on format_mention/3
2019-03-01 22:53:53 +01:00
Haelwenn (lanodan) Monnier
bdd98ee731
AutoLinker.BuilderTest: Do not pass overridden href to create_link/2
2019-02-27 18:33:06 +01:00
Haelwenn (lanodan) Monnier
204ad610e3
AutoLinker.BuilderTest: Match (strange) behaviour
2019-02-27 18:25:14 +01:00
Haelwenn (lanodan) Monnier
a4184277d0
AutoLinker.BuilderTest: Put tests on all the public functions
2019-02-27 18:14:31 +01:00
Egor
e5abcd66b1
Improve hashtags and rel
attribute
2019-02-23 12:51:38 +00:00
Egor
23bb7d68f0
fix carriage return
2019-02-20 10:16:51 +00:00
egor
bd9ebce30e
Small fixes and improvements
2019-02-18 16:49:08 +00:00
Egor Kislitsyn
ed43edc636
make tests async
2019-02-08 17:57:54 +07:00
Egor Kislitsyn
49e9150bdc
better naming
2019-02-08 16:14:39 +07:00
Egor Kislitsyn
48aed6ba61
rename link_and_parse -> link_map
2019-02-08 16:10:02 +07:00
Egor Kislitsyn
4da0c84ba1
add custom handlers for mentions and hashtags
2019-02-08 15:21:07 +07:00
Egor Kislitsyn
479acfb82d
add email, @mentions, #hashtags and extra schemes
2019-02-08 13:45:11 +07:00
Egor Kislitsyn
35810b945e
add TLD validation support
2019-02-05 18:27:58 +07:00
Egor Kislitsyn
34e4e2f953
add formatter
2019-02-05 18:22:51 +07:00
Stephen M. Pallen
0d72ff37a4
fix regression with phone and markdown
2018-01-22 20:59:52 -05:00
Stephen M. Pallen
4d5182ec1f
added support for markdown style links
2018-01-22 19:46:47 -05:00
Stephen M. Pallen
6c56eb91ef
fixed a number of phone number failures
2018-01-19 19:22:07 -05:00
Stephen M. Pallen
80b9b85040
add phone number linking
2017-11-17 13:36:37 -05:00
Stephen M. Pallen
b30df6cb37
fix double dot issue
2017-04-06 19:59:31 -04:00
Stephen M. Pallen
59d41265fc
prep for first release
2017-03-29 16:27:13 -04:00
Stephen M. Pallen
a84a17d01e
auto linking working for simple url with no surounding text
2017-03-29 10:36:21 -04:00
Stephen M. Pallen
dd3d135611
create project and some linker impl
2017-03-29 10:11:22 -04:00