Commit graph

603 commits

Author SHA1 Message Date
Xavier Mendez
e4eacbb757 Hopefully fix Travis 2015-07-13 23:54:07 +02:00
Xavier Mendez
13a700121c Little API detail; flip is_inline parameter to is_block 2015-07-12 23:45:02 +02:00
Xavier Mendez
607e3f987b WE CAN NOW TEST WITH THE UNMODIFIED SPEC! HOORAY! 2015-07-12 23:14:34 +02:00
Xavier Mendez
ff57e91d67 html: Don't render tags inside image content 2015-07-12 23:13:21 +02:00
Xavier Mendez
31b30da462 document: Additional preview flags for FT_LIST 2015-07-12 21:05:25 +02:00
Xavier Mendez
99946f6adf document: Export features in renderer data
Pointer to the renderer itself is also provided.
2015-07-12 21:00:44 +02:00
Xavier Mendez
fc45276fda Use hoedown_list instead of buffers to store list item info 2015-07-12 20:02:44 +02:00
Xavier Mendez
39c9ed7c5a list: Allow custom allocation callbacks; add list_new & free 2015-07-12 19:11:42 +02:00
Xavier Mendez
36780e9471 Infer is_tight from context when rendering paragraphs
Previously, the document parser had to propagate is_tight
across paragraphs so we could render paragraphs inside
tight lists correctly.

Now that we are passing context to the renderers, the hack is
no longer needed; the renderer can "mark" objects of tight list
items and render their paragraphs differently based on that.
2015-07-12 15:58:36 +02:00
Xavier Mendez
b10fe4d9da Use custom objects in the HTML renderer 2015-07-12 15:53:02 +02:00
Xavier Mendez
c3c3d6e890 Testing now works correctly on out-of-source builds 2015-07-12 15:18:35 +02:00
Xavier Mendez
3a369f002b Renderers are now given context!
The `object_get` callback now receives three
extra arguments: the feature that is creating the
object, the (probable) parent of the object to be
created, and some feature-specific flags.

The renderer can use this context information to,
for example, not render tags inside an image content.
2015-07-12 15:18:16 +02:00
Xavier Mendez
1328371e7e Refactor emphasis into smaller methods; fix source reporting 2015-07-12 13:47:16 +02:00
Xavier Mendez
301afae43b Forgot to clean buffer 2015-05-13 19:10:02 +02:00
Xavier Mendez
04950a566b Fix source reporting on lists 2015-04-22 12:41:04 +02:00
Xavier Mendez
e6469e47a8 Optimize preprocessing logic 2015-04-22 12:32:36 +02:00
Xavier Mendez
c49620b6b0 Also report source on render_start / render_end 2015-04-22 12:23:42 +02:00
Xavier Mendez
8d23afe325 No need to have a dedicated preprocessing buffer 2015-04-22 12:22:43 +02:00
Xavier Mendez
462b4fdf1b Introduce the "list" pair! 2015-04-22 10:37:06 +02:00
Xavier Mendez
61f83b9804 Small typography typo 2015-04-19 14:14:14 +02:00
Xavier Mendez
7de039e0e2 Little details in buffer 2015-04-08 00:13:47 +02:00
Xavier Mendez
3ef1aa9b4b Source reporting!!! 2015-04-02 00:00:52 +02:00
Xavier Mendez
bb68dc3c2b Use 1ll instead of 1l for 64-bit integer literals 2015-03-31 12:57:50 +02:00
Xavier Mendez
8571a09526 Little refactor in char trigger utils 2015-03-16 18:06:44 +01:00
Xavier Mendez
ff8d6a34ea Use feature flags instead of delimiters to identify nestings 2015-03-14 22:21:56 +01:00
Xavier Mendez
07b8154187 Clarify docs a bit 2015-03-14 22:13:55 +01:00
Xavier Mendez
085aa3d40d Renderers don't need to know the emphasis delimiter 2015-03-14 22:13:37 +01:00
Xavier Mendez
4d59956eb2 Implement FT_SIDENOTE! 2015-03-14 22:00:58 +01:00
Xavier Mendez
8698b91ed4 Prepare for footnotes 2015-03-14 22:00:20 +01:00
Xavier Mendez
7ba4f8df6f Implement FT_HIGHLIGHT! 2015-03-14 19:28:11 +01:00
Xavier Mendez
6bcbc21ede Implement FT_STRIKETHROUGH! 2015-03-14 19:20:56 +01:00
Xavier Mendez
ee56c25ac5 Implement FT_SUPERSCRIPT! 2015-03-14 12:54:20 +01:00
Xavier Mendez
ac9adf019d Implement FT_EMOJI! 2015-03-14 11:47:29 +01:00
Xavier Mendez
cb6810dd06 Add & implement FT_TYPOGRAPHY! 2015-03-13 20:26:16 +01:00
Xavier Mendez
3e12154909 Implement FT_MATH! 2015-03-13 17:20:16 +01:00
Xavier Mendez
54b8ebcdc3 Unimportant changes 2015-03-13 16:44:51 +01:00
Xavier Mendez
e4aa310d17 Mute Travis for now 2015-03-12 22:54:37 +01:00
Xavier Mendez
8a7a32eb98 Ooops! Correct benchmark value 2015-03-11 00:03:59 +01:00
Xavier Mendez
6c3a586fce Fix image recommendation in tests 2015-03-10 22:24:22 +01:00
Xavier Mendez
a3fec483db Use a local spec to test
This allows us to change CommonMark tests as necessary
according to the spec differences.
2015-03-10 22:23:20 +01:00
Xavier Mendez
306bdedb78 Use left-flanking / right-flanking for emphasis 2015-03-10 22:08:54 +01:00
Xavier Mendez
6bea49afb4 Fix Travis testing 2015-03-10 18:39:51 +01:00
Xavier Mendez
3f9ee41f96 Push provisional README 2015-03-10 17:57:48 +01:00
Xavier Mendez
39ebfc1762 Now targetting CommonMark 0.17! 2015-02-22 17:06:55 +01:00
Xavier Mendez
100d0389be buffer: Add hoedown_buffer_putf 2015-02-21 22:38:40 +01:00
Xavier Mendez
80d749e5e6 Remove some unnecessary "inline"s 2015-02-21 21:43:40 +01:00
Xavier Mendez
f6b9ec732f cli: Fix option parsing 2015-02-21 21:36:31 +01:00
Xavier Mendez
a24a17a415 buffer: Fix some assertions in 2015-02-21 21:36:05 +01:00
Xavier Mendez
021f4304a3 API: Expose the renderer's state 2015-02-21 21:30:05 +01:00
Xavier Mendez
5effe6981d API: rename code_span to just code 2015-02-21 20:57:48 +01:00