Aidan Woods
|
1c8f6bc253
|
Merge pull request #594 from aidantwoods/enhancement/ast-recursion-helper
Add recursive helper for AST
|
2018-04-02 19:53:58 +01:00 |
|
Aidan Woods
|
772c919b05
|
Fix bug where empty atx headings would not be recognised (CommonMark)
Fixes #595
|
2018-04-02 17:18:01 +01:00 |
|
Aidan Woods
|
cf6d23de55
|
Rename hashtags enabled to strict mode
We can use this to seperate any intentional spec deviations from
spec behaviour so users can pick between compatability and spec
implementations
|
2018-04-02 17:18:01 +01:00 |
|
Nathan Baulch
|
d0279cdd3b
|
Enable #hashtag support via setting
|
2018-04-02 17:18:01 +01:00 |
|
Nathan Baulch
|
8a90586218
|
Support #hashtag per CommonMark and GFM specs
|
2018-04-02 17:18:00 +01:00 |
|
Aidan Woods
|
390fa0da1b
|
This is probably faster than duplicating the closure
|
2018-04-01 17:55:32 +01:00 |
|
Aidan Woods
|
9026b1abdb
|
Add recursive helper for AST, use this for implementation of calling handler
recursively
|
2018-04-01 17:10:49 +01:00 |
|
Aidan Woods
|
535110c57e
|
Add process method so extensions may process final AST without
copying implementation of `text`
|
2018-03-31 23:23:12 +01:00 |
|
Aidan Woods
|
ce073c9baa
|
Merge pull request #576 from aidantwoods/enhancement/moar-ast
Produce AST prior to render
|
2018-03-31 23:11:45 +01:00 |
|
Aidan Woods
|
e4d6c8f911
|
Add support for recursive handlers
|
2018-03-31 22:01:38 +01:00 |
|
Aidan Woods
|
aa90dd481a
|
Match CommonMark spec on HTML comments:
Start condition: line begins with the string `<!--`.
End condition: line contains the string `-->`.
|
2018-03-30 19:22:50 +01:00 |
|
Aidan Woods
|
9f1f5de387
|
Add recursive handle methods to generate entire AST for traversal
|
2018-03-28 20:59:56 +01:00 |
|
Aidan Woods
|
a9c21447ce
|
Only interrupt paragraph if starting with 1
|
2018-03-28 15:38:11 +01:00 |
|
Aidan Woods
|
40e797031e
|
Old handler compatability layer
|
2018-03-28 03:42:38 +01:00 |
|
Aidan Woods
|
92e426e0e8
|
Fix merging of adjacent blockquotes
|
2018-03-28 03:27:09 +01:00 |
|
Aidan Woods
|
d849d64611
|
Merge pull request #584 from aidantwoods/fix/tables
Permit 1 column tables with less delimiters
|
2018-03-27 23:18:41 +01:00 |
|
Aidan Woods
|
00e51ee424
|
Permit 1 column tables with less delimiters
|
2018-03-27 23:12:51 +01:00 |
|
Aidan Woods
|
790aed42ab
|
Fix trimming of internal #'s
|
2018-03-27 22:04:11 +01:00 |
|
Aidan Woods
|
ae13290221
|
Merge pull request #574 from aidantwoods/fix/remove-legacy-escaping
Remove legacy escaping
|
2018-03-27 13:18:30 +01:00 |
|
Aidan Woods
|
244ea0aaa6
|
Remove some whitespace
|
2018-03-27 12:11:00 +01:00 |
|
Aidan Woods
|
d2a73f9179
|
Trim whitespace
|
2018-03-27 11:23:04 +01:00 |
|
Aidan Woods
|
21cdd8a0b3
|
Merge branch 'master' into patch-4
|
2018-03-27 11:13:06 +01:00 |
|
Aidan Woods
|
cac63f6fcb
|
Merge pull request #578 from aidantwoods/fix/setext-heading-spaces
Fix setext heading space handling
|
2018-03-25 23:08:31 +01:00 |
|
Aidan Woods
|
f71bec00f4
|
Fix space handling in setext headings
|
2018-03-25 22:50:42 +01:00 |
|
Aidan Woods
|
1fa6b038af
|
PHP 5.3 compat
|
2018-03-25 20:00:31 +01:00 |
|
Aidan Woods
|
e59fbd736d
|
Remove 'markup' key exception for outputting via AST
|
2018-03-25 20:00:31 +01:00 |
|
Aidan Woods
|
8c14c5c239
|
Use rawHtml to provide conditional escaping for markup
|
2018-03-25 20:00:30 +01:00 |
|
Aidan Woods
|
0205a4cbe6
|
Use rawHtml to provide conditional escaping on special chars
|
2018-03-25 19:59:11 +01:00 |
|
Aidan Woods
|
011465bca6
|
Use rawHtml to provide conditional escaping for specialChars
|
2018-03-25 19:59:11 +01:00 |
|
Aidan Woods
|
adcba80502
|
Implement unmarked text via AST
|
2018-03-25 19:59:11 +01:00 |
|
Aidan Woods
|
65d7bc5013
|
Special casing for elements with no name
|
2018-03-25 19:59:11 +01:00 |
|
Aidan Woods
|
d86d839677
|
Merge branch 'master' into fix/consistency_follow
|
2018-03-25 19:37:04 +01:00 |
|
Aidan Woods
|
d5ded2b935
|
Decouple handler argument from structure keys
|
2018-03-21 16:02:57 +00:00 |
|
Aidan Woods
|
098f24d189
|
Seperate handler delegation from AST
This also splits 'text' into 'text', 'elements', and
'element' to hopefully better communicate structure
|
2018-03-21 02:32:01 +00:00 |
|
Aidan Woods
|
eb55e426b9
|
Initial refactor to use AST
|
2018-03-21 02:18:34 +00:00 |
|
Aidan Woods
|
88dc949890
|
Refactor based on suggestion by @PhrozenByte
|
2018-03-18 20:17:12 +00:00 |
|
Aidan Woods
|
3fc54bc966
|
Allow extension to "vouch" for raw HTML they produce
Rename "unsafeHtml" to "rawHtml"
|
2018-03-15 19:46:03 +00:00 |
|
Aidan Woods
|
ef7ed7b66c
|
Still grab the text if safe mode enabled, but output it escaped
|
2018-03-15 11:09:55 +00:00 |
|
Aidan Woods
|
e6444bb57e
|
Add unsafeHtml option for extensions to use on trusted input
|
2018-03-15 10:48:38 +00:00 |
|
Aidan Woods
|
a3265e7c6f
|
Merge pull request #511 from aidantwoods/feature/null-name-element
Allow element to have no name
|
2018-03-15 09:41:16 +00:00 |
|
Aidan Woods
|
6830c3339f
|
Readability
Thanks @PhrozenByte for the suggestion :)
|
2018-03-09 17:38:41 +00:00 |
|
Aidan Woods
|
19f1bb9353
|
Disable backtracking where the regex doesn't need it
|
2018-03-09 17:06:14 +00:00 |
|
Aidan Woods
|
721b885dd3
|
Fix #565 by validating email as defined in commonmark spec
|
2018-03-09 17:05:42 +00:00 |
|
Luiz Paulo "Bills
|
9857334186
|
bump version
|
2018-03-07 22:04:55 -03:00 |
|
Luiz Paulo "Bills
|
ae7e8e5067
|
bump version
|
2018-03-07 21:51:35 -03:00 |
|
Aidan Woods
|
72d30d33bc
|
allow element to have no name
|
2018-03-01 01:17:32 +00:00 |
|
Aidan Woods
|
e941dcc3f0
|
Merge pull request #525 from aidantwoods/fix/infostring
Properly support fenced code block infostring
|
2018-02-28 17:06:25 +00:00 |
|
Aidan Woods
|
c192001a7e
|
Merge pull request #433 from aidantwoods/patch-3
Fix Issue #358 – preventing double nested links
|
2018-02-28 17:05:58 +00:00 |
|
Aidan Woods
|
5057e505d8
|
Merge pull request #475 from aidantwoods/loose-lists
Loose lists
|
2018-02-28 17:05:00 +00:00 |
|
Emanuil Rusev
|
6678d59be4
|
Merge pull request #495 from aidantwoods/anti-xss
Prevent various XSS attacks [rebase and update of #276]
|
2018-02-28 13:41:37 +02:00 |
|