Devin Torres
e3d177ae67
Same for html_smartypants.c
2014-01-22 18:46:30 -06:00
Devin Torres
ab16c82cc7
Explicity declare the escape tables as size UINT8_MAX+1
2014-01-22 18:38:19 -06:00
Devin Torres
242d3397d9
Define HTML escape table values as uint8_t instead of char
...
Thanks @craigbarnes!
Closes #42 .
2014-01-21 17:10:31 -06:00
Devin Torres
46de884e43
Remove unused variables
2014-01-19 20:51:08 -06:00
Xavier Mendez
88711351ad
markdown: let parse_fencedcode put text if there's no end fence
2014-01-16 23:38:42 +01:00
Xavier Mendez
0c8ca0d568
markdown: more precision on codefences
...
- is_codefence is now able to return width and character of the rule.
- parse_codefence accepts pointers passed to is_codefence
- parse_codefence now returns width of the codefence
- fenced code blocks MUST now be ended with the same character,
width and lenght as the starting rule.
2014-01-16 23:38:42 +01:00
Xavier Mendez
e1676d0537
html: Remove PRETTIFY feature; instead output language classes
2014-01-16 23:38:42 +01:00
Xavier Mendez
3d803eafd1
markdown: refactor codefence methods
...
prefix_codefence -> is_codefence
--- Used for checking presence of a valid codefence line
is_codefence -> (bool) parse_codefence
--- Expects single line, tries to parse it and extract language
Uses have been modified accordingly. Also, since
parse_codefence now requires single lines, the parse_fencedcode
method has been rewritten and simplified.
2014-01-16 23:35:31 +01:00
Xavier Mendez
0b93aed508
markdown: just parse a language in code fences!
...
stop that special {} block syntax.
just take the first token (minus whitespace) and use that as language.
if line has more tokens, ignore them and return valid.
2014-01-16 23:35:31 +01:00
Johan Sørensen
08def6f2ff
Use size_t to avoid warning
2014-01-08 21:46:59 +01:00
Devin Torres
30976be4d7
Make the HTML renderer state public again
2014-01-07 10:21:25 -06:00
Devin Torres
0a67a5f484
Release 2.0.0
2013-11-15 20:55:58 -06:00
Devin Torres
262f4a353b
Consistent style
2013-10-30 15:25:30 -05:00
Xavier Mendez
78811e7420
refactor: changes in html
...
- the struct `hoedown_html_renderopt` was renamed to `rndr_state`
2013-10-09 15:01:19 +02:00
Xavier Mendez
eec02ac178
refactor: changes in markdown
...
- stick to `md` for `hoedown_markdown` variable names
2013-10-08 20:53:57 +02:00
Xavier Mendez
95ec2c854d
refactor: changes in markdown
...
- the `cb` member in `hoedown_markdown` is now called `rndr`.
- the `rndr_*` local utilities are now unprefixed.
2013-10-08 20:40:35 +02:00
Xavier Mendez
a5f93518b2
refactor: minor changes in markdown's public API
...
- the `callbacks` argument is now named `renderer`
2013-10-08 20:34:09 +02:00
Xavier Mendez
49ce138a40
small changes in comments
2013-10-08 20:21:19 +02:00
Xavier Mendez
950ed960a1
refactor: changes in html
...
- Let "options" be named "state".
2013-10-08 19:57:42 +02:00
Xavier Mendez
bb6471277a
Solve conflicts from master
...
Conflicts:
src/html.h
src/html.c
2013-10-08 18:05:08 +02:00
Xavier Mendez
0fbc9c996d
Let buffer.h have parameter names, like the rest
2013-10-08 16:18:31 +02:00
Xavier Mendez
ae741c6f35
buffer_putc should accept an uint8_t ( closes #29 )
2013-10-08 16:15:33 +02:00
Devin Torres
b0b3c8136e
More hoedown_stack stragglers
2013-10-07 19:59:07 -05:00
Devin Torres
3b795f3f18
Forgot hoedown_stack when making typedefs
2013-10-07 19:55:37 -05:00
Devin Torres
d9aa3bf040
Namespace BUFPUTSL => HOEDOWN_BUFPUTSL
...
Closes #25 .
2013-10-07 19:46:46 -05:00
Devin Torres
add8743c5f
Revert "GitHub style TOC anchor refs"
...
This reverts commit 8bb78911ab
.
Conflicts:
src/html.c
2013-10-07 19:30:37 -05:00
Xavier Mendez
5c4c5c0590
API-v2: Finish HTML API
2013-10-06 20:41:33 +02:00
Xavier Mendez
e7bbe7b0cb
API-v2: Simplify HTML API
...
- html_renderopts is now private
- hoedown_html_renderer() allocates options and renderer
- so does hoedown_html_toc_renderer()
2013-10-06 20:37:14 +02:00
Xavier Mendez
1fd6ccbb72
API-v2: Let hoedown_renderer have a void* opaque...
...
...instead of passing it as a separate parameter.
2013-10-06 20:26:46 +02:00
Xavier Mendez
6d3acbd672
API-v2: Rename hoedown_callbacks to hoedown_renderer
2013-10-06 16:31:42 +02:00
Devin Torres
f8c7a584f0
All exposed structs are now opaque typedefs
2013-10-02 14:12:16 -05:00
Devin Torres
433fbf073e
Future-proof other options being used with the TOC renderer
2013-10-02 14:12:16 -05:00
Devin Torres
8bb78911ab
GitHub style TOC anchor refs
2013-10-02 14:12:16 -05:00
Devin Torres
d2989aed0c
Release 1.0.2
2013-10-02 14:12:16 -05:00
Devin Torres
78f042d990
Fix hoedown_buffer_printf on MSVC
...
Apparently "vsnprintf is included for compliance to the ANSI standard"
doesn't actually mean it's ANSI compliant.
Closes #21 .
2013-09-30 20:29:27 -05:00
Devin Torres
3d9ca45d67
Add TOC nesting level option to hoedown_html_renderer
...
Closes #19 .
2013-09-30 19:30:52 -05:00
Devin Torres
5c862b0615
Improve MSVC support
...
Closes #18 .
2013-09-27 17:53:14 -05:00
Devin Torres
09457e2760
Release 1.0.1
2013-09-25 20:06:52 -05:00
Devin Torres
92948cc1b9
Fix bug rendering footnotes
2013-09-25 20:04:10 -05:00
Devin Torres
390dbc1dac
Release 1.0.0
2013-09-25 09:12:33 -05:00
Devin Torres
2c95da1d7a
More cleanup and API coalescing
2013-09-23 19:35:54 -05:00
Devin Torres
7c69ce64e3
Fix possible calloc of 0
2013-09-23 18:27:39 -05:00
Devin Torres
eae29db5db
Resolve conflict
2013-09-22 04:18:30 -05:00
Devin Torres
8a28f5b58e
Fix building with MingW and MSVC
2013-09-22 04:10:51 -05:00
Xavier Mendez
539429545b
API: let's stick to *_new
2013-09-21 12:06:42 +02:00
Xavier Mendez
9af2b5587e
API: let's stick to is_*
2013-09-21 11:24:30 +02:00
Xavier Mendez
e2cfbdc2e9
Merge latest changes from @devinus into misc-reorganize
2013-09-21 10:12:28 +02:00
Devin Torres
2508c4b5c7
Improvements to the gperf flow
2013-09-20 21:57:08 -05:00
Devin Torres
f7721a652e
Optimizations from Houdini
2013-09-20 19:07:46 -05:00
Xavier Mendez
9503af51fb
BEHOLD! The BUF ones had the same luck!
2013-09-20 22:10:56 +02:00