Commit graph

560 commits

Author SHA1 Message Date
Xavier Mendez
b234ae0a46 Merge pull request #184 from hoedown/soname
Use -install_name on Darwin
2015-11-25 13:05:48 +01:00
Devin Torres
1ef5e5ac4b Use -install_name rather than -soname on Darwin
Fixes #167.
2015-11-24 23:20:06 -06:00
Xavier Mendez
ed39f34264 Release version 3.0.6 2015-11-20 22:51:00 +01:00
Xavier Mendez
d8d37c3013 Merge pull request #181 from mikesamuel/master
HTML comments in middle of block
2015-11-20 22:48:38 +01:00
Mike Samuel
8635ebfb43 adds a testcase for HTML comments in the middle of a block and a tweak to src/document.c that recognizes them as tags to copy over literally 2015-11-18 15:40:01 -05:00
Xavier Mendez
ca4609d56a Merge pull request #174 from davidszotten/non_enclosing_angle_brackets
only remove enclosing angle brackets
2015-09-19 21:38:15 +02:00
David Szotten
030392d2cf only remove enclosing angle brackets 2015-09-19 15:14:19 +01:00
Xavier Mendez
4638c60ded Release version 3.0.5 2015-09-05 20:30:41 +02:00
Xavier Mendez
f1dba7df2b Make find_emph_char detect codespans at the end 2015-09-05 20:28:28 +02:00
Xavier Mendez
cde8f3f452 Fix warnings on #167 2015-08-31 15:45:48 +02:00
Xavier Mendez
8ff3d82f2d Release version 3.0.4 2015-07-26 22:51:27 +02:00
Xavier Mendez
04c31f89d4 Palliate another effect of rewinding 2015-07-26 22:49:58 +02:00
Xavier Mendez
d52bd1ca0f Release version 3.0.3 2015-05-26 23:44:03 +02:00
Devin Torres
dc5273288c Merge pull request #160 from cuviper/makefile-overrides
tweak the Makefile for better distro support
2015-05-26 14:31:12 -05:00
Xavier Mendez
7c7aadf91d Prevent out of bounds read 2015-05-16 20:29:31 +02:00
Xavier Mendez
d01eba91d2 Merge pull request #159 from uranusjr/table-fix
Fix rendering in table with empty cells
2015-05-16 17:53:36 +02:00
Josh Stone
be82ac2cb0 Support overrides for bin, lib, and include
Usually bin and include are the same, but for instance lib may want to be
lib64 on Red Hat distros.  Add BINDIR, LIBDIR, and INCLUDEDIR variables
that can be overridden on the command line.

This commit also tweaks the way the libraries are installed, dropping
execute privileges on libhoedown.a, and making sure libhoedown.so is
installed as a symlink.  (The install command doesn't preserve symlinks.)
2015-05-15 12:06:38 -07:00
Josh Stone
4e38dcab44 Support command-line override of CFLAGS
Most of the CFLAGS options can reasonably be changed at will, but a few
are necessary.  Move those few into HOEDOWN_CFLAGS, so the rest can be
overridden, e.g. by distro policy.
2015-05-15 12:01:48 -07:00
Josh Stone
ede482b2a6 Include libhoedown.a in "make all" 2015-05-15 11:58:49 -07:00
Josh Stone
0c8eb03f10 Set an SONAME for libhoedown.so.3 2015-05-15 11:57:50 -07:00
Tzu-ping Chung
2297a4e20b Fix rendering in table with empty cells
`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
2015-05-16 00:54:24 +08:00
Xavier Mendez
365ad578e7 Release version 3.0.2 2015-04-08 00:22:33 +02:00
Xavier Mendez
5951df7980 Merge branch 'master' of https://github.com/hoedown/hoedown 2015-04-08 00:18:20 +02:00
Xavier Mendez
2b890c1683 Merge changes from v4 2015-04-08 00:14:24 +02:00
Xavier Mendez
2a4cf17c70 Merge pull request #151 from blaenk/underline-fix
only set active_char if extension is on
2015-01-31 10:03:32 +01:00
Xavier Mendez
59243b5499 Merge pull request #149 from blaenk/underline-fix
allow the HOEDOWN_EXT_UNDERLINE to work
2015-01-31 09:36:23 +01:00
Xavier Mendez
ef84eab702 Merge pull request #150 from blaenk/footnote-fix
set active_char for footnotes
2015-01-31 09:34:44 +01:00
Jorge Israel Peña
c641dc1436 only set active_char if extension is on 2015-01-31 00:02:28 -08:00
Jorge Israel Peña
5cf1ed3fe2 set active_char for footnotes
This enables handling footnotes and footnote references without also
handling images and links.
2015-01-30 20:43:42 -08:00
Jorge Israel Peña
9b789d24a5 allow the HOEDOWN_EXT_UNDERLINE to work
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.
2015-01-30 19:02:37 -08:00
Xavier Mendez
fd09d02ca6 Merge pull request #144 from uranusjr/fix-escape-in-comment
Special-case comment tag to ignore all its content
2015-01-01 12:22:21 +01:00
Xavier Mendez
810c79db34 Reset the TOC header count after a render (closes #147) 2014-12-25 11:13:53 +01:00
Xavier Mendez
a8fdc099bd Release version 3.0.1 2014-12-01 23:16:37 +01:00
Xavier Mendez
977e26e2c9 Merge pull request #146 from stevewolter/master
Fix issue #125 (formatting in TOCs) and out-of-bounds memory access in tab expansion
2014-12-01 17:32:53 +01:00
Steve Wolter
4825466fef Move test for formatting in table of contents to test/Tests directory.
MarkdownTest_1.0.3 directory is reserved for the standard tests from the
original Markdown spec.
2014-12-01 16:47:18 +01:00
Steve Wolter
d2dde183ee Fix out-of-bounds memory access in tab expansion.
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.
2014-12-01 12:35:43 +01:00
Steve Wolter
737304d2aa Fix issue #125: Don't escape HTML tags in tables of contents.
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.
2014-12-01 12:35:14 +01:00
Tzu-ping Chung
6d16d19735 Special-case comment tag to ignore all its content
Fix #143
2014-11-14 10:25:48 +08:00
Xavier Mendez
3afc3ec505 Release v3.0.0! 2014-11-04 19:18:32 +01:00
Devin Torres
9fbd90c51b Merge pull request #141 from jmendeth/simple-install
Simple install target
2014-11-04 09:43:51 -06:00
Xavier Mendez
08910873cf Simplify Makefile 2014-11-04 13:53:58 +01:00
Xavier Mendez
5aa09e2db8 Simple install target 2014-11-04 07:20:16 +01:00
Devin Torres
4898a1e494 Update LICENSE 2014-11-03 20:42:30 -06:00
Devin Torres
12e8acf6fa Merge pull request #140 from uranusjr/test-windows
Make tests work on Windows
2014-11-03 20:40:12 -06:00
Tzu-ping Chung
9585febb58 Make tests work on Windows 2014-10-22 13:12:03 +08:00
Devin Torres
a88343c593 Merge pull request #137 from hoedown/ansi
Use a stricter subset of C
2014-10-21 03:15:03 -05:00
Xavier Mendez
684357d279 bin-refactor: Make parse_options() consistent 2014-10-20 00:27:28 +02:00
Xavier Mendez
4b700ce16e bin-refactor: Refactor! 2014-10-20 00:23:24 +02:00
Xavier Mendez
0af706e37c bin-refactor: Prepare for the refactor 2014-10-20 00:19:00 +02:00
Xavier Mendez
5368b35153 bin-refactor: Add parse_options generic method 2014-10-20 00:10:31 +02:00