summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* only remove enclosing angle bracketsDavid Szotten2015-09-191-2/+4
|
* Release version 3.0.5Xavier Mendez2015-09-051-2/+2
|
* Make find_emph_char detect codespans at the endXavier Mendez2015-09-051-1/+1
|
* Release version 3.0.4rust-2015-08-22-do-not-deleteXavier Mendez2015-07-261-2/+2
|
* Palliate another effect of rewindingXavier Mendez2015-07-261-3/+15
|
* Release version 3.0.3Xavier Mendez2015-05-261-2/+2
|
* Prevent out of bounds readXavier Mendez2015-05-161-1/+1
|
* Fix rendering in table with empty cellsTzu-ping Chung2015-05-161-1/+9
| | | | | | | | `find_emph_char` returns 0 if the char specified is not found in the current line, but this is also what happens when there's an empty cell. This patch adds logic to work around this problem. See uranusjr/macdown#321
* Release version 3.0.2Xavier Mendez2015-04-081-2/+2
|
* Merge branch 'master' of https://github.com/hoedown/hoedownXavier Mendez2015-04-082-1/+15
|\
| * Merge pull request #151 from blaenk/underline-fixXavier Mendez2015-01-311-1/+5
| |\ | | | | | | only set active_char if extension is on
| | * only set active_char if extension is onJorge Israel Peña2015-01-311-1/+5
| | |
| * | Merge pull request #149 from blaenk/underline-fixXavier Mendez2015-01-311-1/+1
| |\ \ | | |/ | | | allow the HOEDOWN_EXT_UNDERLINE to work
| | * allow the HOEDOWN_EXT_UNDERLINE to workJorge Israel Peña2015-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the `HOEDOWN_EXT_UNDERLINE` extension was enabled, underlined spans would actually be passed verbatim to the output buffer. This was because the active_char was _only_ set when the emphasis, double_emphasis, or triple_emphasis handlers were registered. As a result, no active char was found in the input buffer, so everything was passed through verbatim. This patch fixes this by also registering the `active_char` if the underline handler is registered. I also added a simple regression test. I personally don't use this extension, but I encountered this bug over the course of writing bindings for Rust.
| * | set active_char for footnotesJorge Israel Peña2015-01-301-1/+1
| |/ | | | | | | | | This enables handling footnotes and footnote references without also handling images and links.
| * Merge pull request #144 from uranusjr/fix-escape-in-commentXavier Mendez2015-01-011-0/+10
| |\ | | | | | | Special-case comment tag to ignore all its content
| | * Special-case comment tag to ignore all its contentTzu-ping Chung2014-11-141-0/+10
| | | | | | | | | | | | Fix #143
* | | Merge changes from v4Xavier Mendez2015-04-083-4/+67
|/ /
* | Reset the TOC header count after a render (closes #147)Xavier Mendez2014-12-251-0/+2
| |
* | Release version 3.0.1Xavier Mendez2014-12-011-2/+2
| |
* | Fix out-of-bounds memory access in tab expansion.Steve Wolter2014-12-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The loop performs two jobs: Find the first tabstop, and counting the number of characters before it. To count the number of characters before the tabstop, it counts all bytes that are not UTF-8 continuation bytes. The current form of the loop doesn't check the first character, but checks the character past the range's end. Since these are both usually non-continuation characters, it does the right thing accidentally. However, it accesses the character range at index `size`, which is forbidden and might be uninitialized for strings that are not null-terminated.
* | Fix issue #125: Don't escape HTML tags in tables of contents.Steve Wolter2014-12-011-2/+2
|/ | | | | | | | Before this patch, a header like "# *A*" was displayed as "<li>&lt;em&gtA&lt;/em&gt;</li>" in the TOC. The error was caused by toc_header doing the HTML escaping. In the normal HTML renderer, the escaping is done by the normal_text hook. This patch uses the same handling to fix the issue.
* Release v3.0.0!Xavier Mendez2014-11-041-2/+2
|
* Use a stricter subset of CDevin Torres2014-10-185-53/+120
|
* Merge pull request #130 from MarkLodato/utf8-tab-expansionDevin Torres2014-10-041-1/+10
|\ | | | | Make tab expansion UTF-8 aware.
| * Make expand_tabs() UTF-8 aware.Mark Lodato2014-09-221-1/+10
| | | | | | | | | | | | | | | | | | Previously, expand_tabs() counted every *byte* rather than every *character* to determine the proper tab stops. This change fixes that by skipping over UTF-8 continuation bytes (bytes of the form 10xxxxxx), which are the only types of bytes in valid UTF-8 that do not start a character. This code does not skip over combining characters.
* | Merge pull request #126 from mo/typofixesDevin Torres2014-10-042-6/+6
|\ \ | | | | | | Fixes a few typos
| * | Fix a few typosMartin Olsson2014-09-192-6/+6
| |/
* | Don't use "for (declaration"Xavier Mendez2014-10-042-2/+4
| |
* | Merge pull request #124 from jmendeth/renderer-apiDevin Torres2014-10-024-198/+239
|\ \ | |/ |/| Renderer API
| * Revert `hoedown_inline`Xavier Mendez2014-10-022-5/+0
| |
| * Properly name categoryXavier Mendez2014-09-141-1/+1
| |
| * Split `table` in `table_header` and `table_body`Xavier Mendez2014-09-143-11/+40
| | | | | | | | | | | | | | Only one parameter (`content`) can have rendered output. The `table` callback contradicts this rule, so it has to be split in `table_header` and `table_body`. This also helps keep the HTML renderer code dry and readable.
| * Call it `content` when it's rendered output, `text` otherwiseXavier Mendez2014-09-143-101/+98
| | | | | | | | If it's rendered output, i.e. output coming from other callbacks, it must be called `content`, and be the first parameter after `ob`.
| * Rename `raw_html_tag` to just `raw_html`Xavier Mendez2014-09-142-3/+3
| |
| * Put HTML callbacks at the end of their categoriesXavier Mendez2014-09-141-2/+2
| |
| * Update HTML renderer to use new APIXavier Mendez2014-09-142-48/+49
| |
| * Add `render_inline` parameter to header and footer callbacksXavier Mendez2014-09-142-4/+11
| |
| * Create renderer_data and pass it to callbacksXavier Mendez2014-09-142-84/+96
| |
* | Remove HTML_SAFELINK and EXT_LAX_SPACINGXavier Mendez2014-09-194-44/+2
| |
* | Don't require spacing around math spans (fix #120)Xavier Mendez2014-09-141-5/+1
|/
* Include strings.h to silence warnings for strncasecmpFlorian Hahn2014-09-142-2/+6
|
* Use memcmp in hoedown_buffer_eq(...)Xavier Mendez2014-09-091-5/+1
|
* Keep code without warningsXavier Mendez2014-09-042-10/+10
|
* Keep up to date with masterXavier Mendez2014-09-043-5/+95
|\
| * Keep up to date with masterXavier Mendez2014-09-021-143/+122
| |\ | | | | | | | | | | | | Conflicts: src/document.c
| * | Rename MATH_DOLLAR to MATH_EXPLICIT, update descriptionsXavier Mendez2014-09-022-6/+6
| | |
| * | document: Make MATH extension context-sensitiveXavier Mendez2014-09-021-6/+21
| | |
| * | html: Add *provisional* implementation for MATHXavier Mendez2014-08-181-0/+11
| | |
| * | document: Implement MATH extensionXavier Mendez2014-08-182-5/+69
| | |