Albert Yi
cde341011c
Regenerate gemspec for version 1.6.0
2017-09-18 11:47:40 -07:00
Albert Yi
6a6ea7427f
Version bump to 1.6.0
2017-09-18 11:47:30 -07:00
Albert Yi
20cb24b2af
implement inline parsing for bracketed textile links
2017-09-18 11:47:14 -07:00
Albert Yi
d93eace454
Regenerate gemspec for version 1.5.1
2017-07-24 12:01:51 -07:00
Albert Yi
d649a366b1
Version bump to 1.5.1
2017-07-24 12:01:25 -07:00
Albert Yi
12e95a8bb8
regen c file
2017-07-24 12:01:10 -07:00
Albert Yi
639f957986
Merge pull request #23 from evazion/fix-22
...
Fix #22 : Issues with @ symbol processing.
2017-07-13 15:33:16 -07:00
evazion
03ccd26f79
Fix #22 : Issues with @ symbol processing.
2017-07-13 16:25:11 -05:00
Albert Yi
21054b3a18
Merge pull request #20 from evazion/fix-unicode-boundaries
...
Fix #17 : ignore trailing unicode punctuation when parsing links.
2017-07-13 13:53:18 -07:00
Albert Yi
dea55e6cc8
Regenerate gemspec for version 1.5.0
2017-07-11 15:46:27 -07:00
Albert Yi
7b3711ad16
Version bump to 1.5.0
2017-07-11 15:46:15 -07:00
Albert Yi
eb52d2c047
Merge pull request #21 from evazion/feat-note-id-links
...
Add note #1234 syntax.
2017-07-07 18:59:50 -07:00
Albert Yi
c59536a020
Merge branch 'master' into fix-unicode-boundaries
2017-07-05 11:34:12 -07:00
Albert Yi
57ea65b544
Merge pull request #19 from evazion/feat-delimited-links
...
Fix #18 : Add syntax for delimited links: <http://www.example.com >
2017-07-05 11:33:16 -07:00
evazion
2e9bf969dc
Add note #1234 syntax.
2017-07-03 19:37:31 -05:00
evazion
973a9d19c8
Fix #17 : ignore trailing unicode punctuation when parsing links.
...
Ignores trailing Unicode punctuation characters when parsing links.
Fixes parsing of links like 【http://www.example.com】so that the `】`
character is not included in the link.
* http://www.fileformat.info/info/unicode/category/Pe/list.htm
* http://www.fileformat.info/info/unicode/block/cjk_symbols_and_punctuation/list.htm
2017-07-02 14:21:56 -05:00
evazion
90a06935c2
Fix #18 : Add syntax for delimited links: < http://www.example.com >
2017-07-02 09:56:06 -05:00
Albert Yi
93cde168dd
Merge pull request #16 from evazion/fix-15
...
Fix "Unable to install gem on Wheezy: G_OPTION_FLAG_NONE undeclared"
2017-03-01 12:50:47 -08:00
evazion
052b8821ba
dtext.c: regen.
2017-03-01 14:25:23 -06:00
evazion
83048f8a28
Make building bin/cdtext.exe optional.
...
Only build `main()` when building bin/cdtext.exe, since it isn't
necessary for the dtext library itself and could cause problems with old
versions of glib.
2017-03-01 14:19:42 -06:00
evazion
9b624c8899
dtext.rl: remove G_OPTION_FLAG_NONE ( fixes #15 ).
...
G_OPTION_FLAG_NONE was introduced in glib-2.42, but debian wheezy still
packages glib-2.33.
2017-03-01 14:18:20 -06:00
Albert Yi
e8537ad7ef
Regenerate gemspec for version 1.4.4
2017-02-27 17:02:38 -08:00
Albert Yi
a76d51013f
compile ragel file
2017-02-27 17:02:28 -08:00
Albert Yi
848b74b705
Version bump to 1.4.4
2017-02-27 17:02:07 -08:00
Albert Yi
95ebc2ea6c
Merge pull request #14 from evazion/fix-url-fragments
...
dtext.rl: allow fragment-only urls in named links ("foo":#toc).
2017-02-27 17:01:49 -08:00
evazion
bc66c2693a
dtext.rl: allow fragment-only urls in named links ("foo":#toc).
...
Fixes #13 .
2017-02-26 01:16:53 -06:00
Albert Yi
b46c5dd74f
Regenerate gemspec for version 1.4.3
2017-02-21 11:24:55 -08:00
Albert Yi
4bd2fc5e1f
Version bump to 1.4.3
2017-02-21 11:24:49 -08:00
Albert Yi
b2516a677b
Regenerate gemspec for version 1.4.2
2017-02-21 11:24:03 -08:00
Albert Yi
ba4443b53f
Version bump to 1.4.2
2017-02-21 11:23:59 -08:00
Albert Yi
cdd817a02f
run ruby tasks in bundler env
2017-02-21 11:21:44 -08:00
Albert Yi
7c7869c1e8
Merge pull request #12 from evazion/feat-absolute-urls
...
Add option to resolve relative -> absolute urls.
2017-02-20 14:12:26 -08:00
evazion
7dcd32a2e5
fixup! Gemfile: update gems, add nokogiri.
...
fixup to depend on `nokogiri ~> 1.6` instead of 1.7. Using 1.7 forced
jeweler to downgrade to 2.1.1.
Also specify `group: :development` on the other gems so they won't be
unnecessarily pulled in on Danbooru's Gemfile.
2017-02-19 02:33:10 -06:00
evazion
5c2a7159d3
dtext_text.rb: add relative url tests.
2017-02-18 03:23:21 -06:00
evazion
e417506152
DTextRagel#parse: add base_url
option for resolving relative urls.
...
Uses nokogiri to rewrite relative urls to absolute urls. Makes `parse`
into a wrapper around `c_parse`, which also simplifies the option
parsing somewhat.
Also fixes a bug with DTextRagel.parse(42) crashing by using
StringValue, which raises a type error if input isn't a string.
2017-02-18 03:20:12 -06:00
evazion
1d644d8339
extconf.rb: make gcc stfu about mixed declarations and code.
2017-02-18 03:20:12 -06:00
evazion
7ce0a4ea5d
Gemfile: update gems, add nokogiri.
2017-02-18 03:20:07 -06:00
Albert Yi
5a1d932620
Merge pull request #11 from evazion/fix-utf8-xss
...
Fix XSS caused by invalid utf8.
2017-02-17 16:17:21 -08:00
evazion
5551f4c23c
Regenerate dtext.c.
2017-02-17 03:23:18 -06:00
evazion
2f61ccbeee
Raise error if input is invalid utf8 or contains nulls.
...
This fixes an XSS in the use of `g_markup_escape_text`, which doesn't
properly escape input if it's not valid utf8.
Since nulls are also forbidden by `g_utf8_validate`, don't try to deal
with them either.
2017-02-17 03:16:13 -06:00
evazion
654ebdbdc2
Add tests for invalid utf8 xss exploit.
2017-02-17 02:57:12 -06:00
Albert Yi
48a1028ceb
Regenerate gemspec for version 1.4.1
2017-02-14 10:33:53 -08:00
Albert Yi
9fd3375d7b
Version bump to 1.4.1
2017-02-14 10:33:45 -08:00
Albert Yi
899ffc99cb
fixes #9 : Allow [code] styling to be inline
2017-02-14 10:33:37 -08:00
Albert Yi
dc6bc3ac33
fix gemspec
2017-02-14 10:28:42 -08:00
Albert Yi
fb4bc027d4
Regenerate gemspec for version 1.4.0
2017-02-14 10:26:57 -08:00
Albert Yi
9ac422840e
Version bump to 1.4.0
2017-02-14 10:26:31 -08:00
Albert Yi
1ef8143ae0
fix warnings
2017-02-14 10:14:30 -08:00
Albert Yi
024b55ebd1
remove unused test files
2017-02-14 10:00:45 -08:00
Albert Yi
a7d6b2d773
Merge pull request #10 from evazion/feat-dtext-exe
...
Add standalone dtext executable
2017-02-14 09:59:40 -08:00