Browse files

Brought peg-markdown submodule and associated files in ext up to date.

This fixes a bug which caused extra blank lines to be inserted
at the beginning of converted text.
  • Loading branch information...
1 parent 72d557e commit 16858b57173c7c492d06cb61e75d4bba532ef1f6 @jgm committed Aug 8, 2008
Showing with 6 additions and 5 deletions.
  1. +4 −4 ext/markdown_lib.h
  2. +1 −0 ext/markdown_output.c
  3. +1 −1 peg-markdown
View
8 ext/markdown_lib.h
@@ -3,10 +3,10 @@
#include <glib.h>
enum markdown_extensions {
- EXT_SMART = 0x1,
- EXT_NOTES = 0x2,
- EXT_FILTER_HTML = 0x4,
- EXT_FILTER_STYLES = 0x8
+ EXT_SMART = 0x01,
+ EXT_NOTES = 0x02,
+ EXT_FILTER_HTML = 0x04,
+ EXT_FILTER_STYLES = 0x08
};
enum markdown_formats {
View
1 ext/markdown_output.c
@@ -734,6 +734,7 @@ static void print_groff_mm_element(GString *out, element *elt, int count) {
void print_element_list(GString *out, element *elt, int format, int exts) {
extensions = exts;
+ padded = 2; /* set padding to 2, so no extra blank lines at beginning */
switch (format) {
case HTML_FORMAT:
print_html_element_list(out, elt, false);
2 peg-markdown
@@ -1 +1 @@
-Subproject commit 656f5c3054a6f2d0c2ce5314685e1a98a6370051
+Subproject commit 9ca8be02c3e2a1c36b76e1d2d300caae29509963

0 comments on commit 16858b5

Please sign in to comment.