Edho Arief
|
37df8f76ec
|
No more <> spacing evilry in dtext.
|
2012-06-07 05:18:27 -07:00 |
|
Edho Arief
|
ff1282cf97
|
better parseurl (probably).
|
2012-06-07 04:53:51 -07:00 |
|
Edho Arief
|
b662456644
|
Cleaned up comments.
|
2012-06-07 04:02:51 -07:00 |
|
Edho Arief
|
3e790c7a2c
|
Fixed link generation on list item.
|
2012-06-07 03:53:58 -07:00 |
|
Edho Arief
|
337ca01cb9
|
Some more whitespace cleanup.
|
2012-06-04 17:24:00 +07:00 |
|
edogawaconan
|
83e658cca1
|
Merged in fudanchii/moebooru (pull request #8)
|
2012-06-02 01:58:33 +07:00 |
|
Edho Arief
|
046698d9e4
|
Accidentally dtext's parseurl return value.
|
2012-06-01 14:19:39 -04:00 |
|
Nurahmadie
|
93a1a93238
|
Use lazy regex. Fix consecutive [b] or [i] tags substitution.
|
2012-06-02 01:17:42 +07:00 |
|
Edho Arief
|
02c1d8fdf8
|
Rubinius compat.
|
2012-06-01 14:17:28 -04:00 |
|
Edho Arief
|
60a5914973
|
Nuke the newlines after blockquote.
|
2012-05-28 20:00:53 -07:00 |
|
Edho Arief
|
ece3d1c4f1
|
Fixed link to wiki generation.
|
2012-05-25 10:18:21 -07:00 |
|
Edho Arief
|
b5a74a2841
|
Whitespace cleanup after lists and headers.
|
2012-05-25 09:40:20 -07:00 |
|
Edho Arief
|
1627183a98
|
Stop eating newlines. (also ensure the split results something before counting stars)
|
2012-05-25 08:59:23 -07:00 |
|
Edho Arief
|
5110ae3bf2
|
Re-dtext import.
|
2012-05-25 11:13:32 -04:00 |
|
Edho Arief
|
4ffff21010
|
Not sure if the crazy regex still needed. Breaks on rbx so I guess I'll just limit it to ruby mri 1.8.
|
2012-05-22 14:32:57 -04:00 |
|
Nurahmadie
|
f996731784
|
Add comments
|
2012-05-22 06:58:09 +07:00 |
|
Nurahmadie
|
3ba9f1cca7
|
Simplify url substitution logic for <<url|label>> form.
|
2012-05-22 06:28:11 +07:00 |
|
Nurahmadie
|
407bf21ff9
|
Fix url match.
|
2012-05-21 03:26:32 +07:00 |
|
Nurahmadie
|
77f4cda49d
|
Don't do repetitive match
|
2012-05-19 01:24:41 +07:00 |
|
Nurahmadie
|
dba23cbc06
|
No need to use block for <li></li>
|
2012-05-19 01:12:50 +07:00 |
|
Nurahmadie
|
7364f1b8a4
|
Move last <br> substitution to parseinline.
|
2012-05-19 00:56:04 +07:00 |
|
Nurahmadie
|
44082c5399
|
Remove <br> if appear just before </div>
|
2012-05-19 00:45:02 +07:00 |
|
Nurahmadie
|
b2242dbd7a
|
Add some comments for parseinline
|
2012-05-19 00:44:11 +07:00 |
|
Nurahmadie
|
1acfbff7ee
|
Keep newline after </div>. For consistant layout
|
2012-05-19 00:18:53 +07:00 |
|
Nurahmadie
|
8797abac06
|
Use like... 4 versions of spoiler tag
|
2012-05-18 23:56:05 +07:00 |
|
Nurahmadie
|
b8efab6e15
|
Capture the original case from shortlinks
|
2012-05-18 23:06:41 +07:00 |
|
Nurahmadie
|
3c485e02c2
|
edogawaconan's patch. Less gsub call
|
2012-05-18 22:38:31 +07:00 |
|
Nurahmadie
|
482a5981f7
|
Ignore case for shortlinks
|
2012-05-18 22:12:12 +07:00 |
|
Nurahmadie
|
9aa1bc0891
|
Remove unnecessary temporary vars from regex usage
|
2012-05-18 21:51:53 +07:00 |
|
Nurahmadie
|
3245ccd4de
|
Move CGI.escapeHTML
|
2012-05-18 21:28:38 +07:00 |
|
Nurahmadie
|
44728c9222
|
Validate ipv6, and lolttp style scheme.
|
2012-05-18 05:17:00 +07:00 |
|
Nurahmadie
|
f08448674d
|
Don't catch whitespace for url pattern, update test
|
2012-05-16 06:01:21 +07:00 |
|
Nurahmadie
|
f6aa6bed03
|
Do escape link
|
2012-05-16 05:38:28 +07:00 |
|
Nurahmadie
|
4a7b66848c
|
Fix wrong parameter, update test to check this.
|
2012-05-16 04:45:21 +07:00 |
|
Nurahmadie
|
691568c874
|
add head and tail whitespace for <<link|name>> pattern
|
2012-05-16 04:38:50 +07:00 |
|
Nurahmadie
|
d0fca5fed8
|
Match start and end of line.
|
2012-05-16 04:34:30 +07:00 |
|
Nurahmadie
|
97b9f463b2
|
Remove <li> for nested <ul>
|
2012-05-16 01:55:30 +07:00 |
|
Nurahmadie
|
6ef3b81b97
|
Make it work with rails
|
2012-05-16 01:26:30 +07:00 |
|
Nurahmadie
|
8cd98deb7c
|
Hopefully backward-compatible with the original dtext.
|
2012-05-16 01:01:23 +07:00 |
|
Nurahmadie
|
3780980b4c
|
Now we have parse url
|
2012-05-16 00:32:02 +07:00 |
|
Edho Arief
|
8d4775025c
|
Tab => space replacement.
|
2012-05-13 18:18:11 -07:00 |
|
Nurahmadie
|
7f75fdbd5d
|
Add links and quote parsing
|
2012-05-14 04:31:12 +07:00 |
|
Nurahmadie
|
69928de9d4
|
Should be lazy
|
2012-05-13 22:38:58 +07:00 |
|
Nurahmadie
|
8671a973ee
|
Fix nested list leveling
|
2012-05-13 18:20:15 +07:00 |
|
Nurahmadie
|
c79595d498
|
Remove parseparagraph
|
2012-05-13 16:32:12 +07:00 |
|
Nurahmadie
|
7e3cc78aed
|
Remove pretty format for test, it fails anyway.
Also remove <p> from test file
|
2012-05-13 16:15:04 +07:00 |
|
Nurahmadie
|
2e34b72879
|
Fix state check for list
|
2012-05-13 15:17:17 +07:00 |
|
Nurahmadie
|
1dfdd0c88a
|
Use string for all the state
|
2012-05-13 14:57:31 +07:00 |
|
Nurahmadie
|
9cdf5050e6
|
move CGI.escapeHTML back to parseinline
|
2012-05-13 14:53:33 +07:00 |
|
Nurahmadie
|
7be0c883a6
|
Change <em> and <strong> parsing format
Also move CGI.escapeHTML to parse
|
2012-05-13 14:40:39 +07:00 |
|