Commit Graph
100 Commits
Author SHA1 Message Date
david parsons 22fd0cb385 change domain from pell.chi.il.us to pell.portland.or.us 2014-01-08 16:15:49 -08:00
David Parsons 274f4129ee Merge pull request #95 from binki/master
Drop extraneous backslash in Makefile.in and use charset=utf-8 instead of charset-utf-8 in mkd2html
2013-10-22 22:31:28 -07:00
David Parsons a08dd50f09 Merge pull request #90 from typester/urlencoded-anchor
Urlencoded anchor support
2013-10-22 09:49:21 -07:00
David Parsons 1cb8fe0a35 Merge pull request #92 from hartzell/master
Make long item labels on enumerated lists work.
2013-10-22 09:41:54 -07:00
David Parsons 81ed24aae0 Merge pull request #83 from sekimura/re-define-tags
check to see if S(extratags) before EXPAND(extratags)
2013-08-05 12:21:47 -07:00
David Parsons 99771a2a74 Merge pull request #78 from lsegal/gfm-fenced-code
Support language name as attribute on fenced code block start line
2013-08-04 10:48:49 -07:00
David Parsons 2a9f043c7f Merge pull request #80 from binki/master
Fix support for “$ CFLAGS=-m32 ./configure.sh” by using CFLAGS for all build invokations of CC.
2013-07-24 22:33:50 -07:00
david parsons b9c84032eb Credit John Foerch for the endash/emdash smartypants bugfix 2011-07-31 11:23:37 -07:00
david parsons f4f322d8dc Code block fences need to be 3 or more tildes 2011-07-22 10:08:58 -07:00
david parsons dfb05a3fa0 Bump the version file (sigh) 2011-07-21 01:29:22 -07:00
david parsons 7cb4476220 Add a paranoia check to fencedcodeblock() -- don't check for a fence on null lines 2011-07-20 23:47:31 -07:00
david parsons 9dc73d4092 Shuffle the guts of the ELF/gcc librarian around.
Also shuffle the guts of the MacOS/dylib librarian for symmetry
2011-01-10 10:27:54 -08:00
david parsons a2f46c62d6 Even more working on the librarian; now create a specific librarian
for each type of library (Unix static, macos .dylib, gcc/ELF .so)
instead of doing a portmanteau librarian for all the different flavo[u]rs
of shared library.
2011-01-10 10:21:10 -08:00
david parsons 9bc6ec1287 Tweak the shared library support to work again on .so (freebsd) libraries 2011-01-09 23:04:57 -08:00
david parsons c3500df8b8 Merge branch 'master' of orc@gw:Src/discount 2011-01-04 22:02:24 -08:00
david parsons 94ef888cc8 Push out the patches to css.c and toc.c 2011-01-04 12:16:23 -08:00
david parsons 7fb50d3563 Tweak the way I null-pad and return values from mkd_css() and mkd_toc() 2011-01-04 11:59:54 -08:00
david parsons 0af211ea94 In initialize, do the initrng() and tag population separately, just in case
someone really wants to do multiple initialize/deallocate cycles.
2011-01-03 11:58:53 -08:00
david parsons 7be4b053f2 Add (public) prototypes for mkd_initialize() and mkd_shlib_destructor() 2011-01-02 11:45:46 -08:00
david parsons 010aeb85db Add prototypes for mkd_initialize() and mkd_shlib_destructor() 2011-01-02 11:44:58 -08:00
david parsons a77dec38a5 Add a prototype for mkd_deallocate_tags() 2011-01-02 11:42:48 -08:00
david parsons c41ccbc8ff don't forget to set p->text = 0 after compiling unclosed html blocks 2011-01-02 01:01:59 -08:00
david parsons 8601171480 in definition_block(), don't forget to initialize text=0 to make gcc STFU 2011-01-02 00:58:35 -08:00
david parsons 7eaf3b2e76 Merge branch 'master' of orc@gw:Src/discount 2011-01-02 00:54:15 -08:00
david parsons 14955ede87 Be more picky about what comes before a ^ if we're superscripting 2011-01-02 00:53:45 -08:00
david parsons ef4f44c1f1 It turns out that non-toplevel paragraphs consume adjacent code blocks :-( 2010-12-11 15:25:09 -08:00
david parsons bf6845233c Rework (again) indentation inside list items.
Indent should never be > 4 for enumerated lists; this means that I have to
test and cut back large indents and change my test cases to account for
leading whitespace on deeply (2 spaces + enumerated marker + 1 space) indented
items.
2010-12-11 14:48:45 -08:00
david parsons da64cc5e94 Remove the (now quite obsolute) --example-dl-tag switch from configure.sh 2010-12-09 15:46:59 -08:00
david parsons 6d45b23bf4 Merge branch 'master' of orc@gw:Src/discount 2010-12-09 14:06:00 -08:00
david parsons 4b10998ed1 Redo the internals for pandoc-style headers; don't just carry
around a linked list, but pull each field out into its own structure
element.
2010-12-09 14:05:29 -08:00
david parsons 486d82961a Update the flags documentation for the markdown(1) manpage. 2010-11-22 14:19:00 -08:00
david parsons 442a83a76b Merge branch 'master' of orc@gw:Src/discount 2010-11-22 13:43:59 -08:00
david parsons f0dc93589e Update the MKD_ flags section in the markdown(3) manpage. 2010-11-22 13:43:37 -08:00
david parsons 3b24127f58 Add <?theme config?>, which writes a listing of all of the runtime
settings to the output file.
2010-11-10 23:22:23 -08:00
david parsons 10f340de89 Rename the text for MKD_1_COMPAT to `MKD_1_COMPAT'' (instead of the cutandpasted `1_COMPAT'') 2010-11-10 22:45:19 -08:00
david parsons 517d7e408a We need to write a newline after mkd_flags_are() 2010-11-10 22:43:14 -08:00
david parsons e767d30715 Don't put out a newline at the end of the runtime flags when not in html mode. 2010-11-10 22:42:19 -08:00
david parsons 3703812fd3 Use two-column output for the html table. 2010-11-10 22:31:14 -08:00
david parsons 796c9f70c7 Rework the html output for mkd_flags_are to use <s>strikethrough</s> on options that are logically OFF. 2010-11-10 17:19:16 -08:00
david parsons 6922fdfe94 Add a couple of functions that write the current runtime configuration
(either a flags value (mkd_flags_are) or of an MMIOT (mkd_mmiot_flags))
to a FILE.    `markdown -VV` prints out the flags for now, and the
functions are there for other people to use as they desire.
2010-11-10 15:30:39 -08:00
david parsons f00ae83c99 Change the autolink prefix to closer fit to the reference dingus; if a <url> has a known protocol prefix, it does not need a leading // after the prefix. 2010-11-09 15:57:21 -08:00
david parsons 166e52c320 Add test cases for <> links (regular and markdown 1 compat), split the superscript tests out from smarty.t 2010-11-09 13:08:02 -08:00
david parsons 76592be00d Modify superscript grabbing so that it grabs parenthetical and alphanumeric blocks 2010-11-05 19:04:59 -07:00
david parsons 15552cf865 Merge branch 'master' of orc@gw:Src/discount 2010-10-28 18:26:53 -07:00
david parsons 7d04170d60 Rework (again!) the guts of linkylinky to support markdown
1.0.2b8-style `<`..`>` links: these are like the original
format I implemented before I rolled them out while chasing
compatability in that a url starting with '<' contains _all
characters_ until an unescaped '>' is encountered.
2010-10-28 18:26:38 -07:00
david parsons 668cd76aec Describe more markdown feature flags. 2010-10-22 15:32:11 -07:00
david parsons 2de508cc97 In mkd-extensions, don't talk about configure.sh options to enable features, because it no longer works that way. 2010-10-22 15:10:50 -07:00
david parsons 2d7f738879 Since everything is runtime configured now, markdown.1 doesn't
need to have substitutions made against it before it's built.
And while I'm at it, I need to explain every flag possible in
the markdown(1) program.
2010-10-22 15:03:28 -07:00
david parsons dec1515923 checkbits.sh: don't exec the diff, because that means that the workfiles remain after the program finishes. 2010-10-22 14:09:05 -07:00
david parsons 0e9e3f0539 Do header verification as a prerequisite for ``make test'' 2010-10-22 13:51:22 -07:00
david parsons 456f4b873d Add a verify stanza to the Makefile to compare the option bits in markdown.h and mkdio.h 2010-10-22 13:43:01 -07:00
david parsons a3cca9805f Put a space after the definition of MKD_STRIKETHROUGH so that automated validation of the header flags will work. 2010-10-22 13:37:03 -07:00
david parsons a91572d5b3 Modify the dl test to check that I can enable and disable
definition lists at runtime.
2010-10-22 13:28:22 -07:00
david parsons ed7f0491e3 Strip out the compile-time definitions for definition lists, alpha lists, and div classes.
Everything optional should be runtime configurable now (and blockable with STRICT?)
2010-10-22 13:26:08 -07:00
david parsons 12bb2b959b Convert all the internal flag bit names so they are the
same as the public flag bit names.
2010-10-22 12:59:06 -07:00
david parsons 7318bbb856 When generating css, emit a \n after each line in the <style> block. 2010-10-22 12:32:43 -07:00
david parsons 97a559323e Redo labelformat to make it more xhtmlable.
* if the first character in a label is not alpha, prefix the label with
  a "L".
* map every character that's not alphanumeric, "_", "-", ":", or "." into
  a ".".
2010-10-22 12:00:13 -07:00
david parsons 5b61f5831a Enable alpha-list with --enable-everything 2010-10-22 11:41:29 -07:00
david parsons aee1c2f416 Merge orc@gw:Src/discount
Conflicts:

	mkdio.c
2010-10-22 11:39:33 -07:00
david parsons 5fc4a18512 1. Redo the _to_anchor() function to stick with xhtml label restrictions
2. tweak the id: pseudo-protocol tests to reflect them being span instead of a
2010-09-03 16:15:49 -07:00
david parsons 909df71f04 1. For (id: pseudo-protocol, emit <span id=
2. quote the `a` when defining an alpha list.
2010-09-03 13:23:51 -07:00
david parsons c673eaab41 1. Have ->...<- generate a styled <p>...</p> instead of the not-supported-in-xhtml <center>..</center>
2. add `<object>` to the list of block html elements.
2010-09-02 15:34:14 -07:00
david parsons 88c049675e Describe MKD_NOSTRIKETHROUGH in mkd-functions(3); fix a typo in mkd-extensions(7) 2010-09-01 13:46:08 -07:00
david parsons 5f09bc54f2 Document the lang: pseudo-protocol & ~~strikethrough~~ 2010-09-01 13:16:55 -07:00
david parsons e78893be14 Add a config flag (MKD_NOSTRIKETHROUGH) to disable strikethrough.
Also add a test case file and `-f` options for the markdown command
line program.
2010-08-31 17:08:18 -07:00
david parsons cca39f1f56 Yank the backtick handler out of text() and into its own function. 2010-08-31 14:23:36 -07:00
david parsons 2cab1cd458 Rework the backtick code so it won't do closing backtick fragments. 2010-08-31 14:12:12 -07:00
david parsons 86970961b9 Preliminary tweaks to support ~~strikethrough~~ (for reddit, et alii) 2010-08-30 15:18:18 -07:00
david parsons 517d0daea5 When submatching backticks, don't set the # of ticks to the # of
closing ticks UNLESS it's less than the # of opening ticks.
2010-08-27 14:38:07 -07:00
david parsons 8a710a7234 Prepare for version 1.6.4 2010-03-14 00:19:39 -08:00
david parsons 60fdae7c76 Reversed the test for basenames() [ick] 2010-01-29 21:51:34 -08:00
david parsons f078ee6069 Tweak the fdate() function so that it takes the document date,
and if that doesn't exist and there's a file date, that one.
2009-11-28 22:07:40 -08:00
david parsons b6b22e79ef Strip out an unused variable in linkyurl() 2009-06-17 08:38:56 -07:00
david parsons 60062adbee 1. Add a prototype for ___mkd_freefootnote() to markdown.h
2. Remove some unused variables from various functions in generate.c
2009-06-15 23:27:14 -07:00
david parsons bfe919bbf0 Up to 1.4.2 2009-06-07 08:25:52 -07:00
david parsons 5fad265c9b Remove the unused url variable from linkyurl() 2009-06-05 22:20:35 -07:00
david parsons c39f331aee Up to version 1.3.6 2009-04-27 19:04:06 -07:00
david parsons 321551ffca Remove an unused variable to make gcc stfu 2009-04-27 17:43:45 -07:00
david parsons b6917c6b4c Add a prototype for ___mkd_tidy() 2009-02-28 19:23:58 -08:00
david parsons 142e1155bd Tweak function names (__mkd_reparse -> ___mkd_reparse and
`__mkd_emblock` -> `___mkd_emblock`), add prototypes in `markdown.h`,
change `Csputc()` from an int to a void function, make `Csreparse()`
a void function.
2009-02-28 09:54:42 -08:00
david parsons 99632b67e0 Strip out some debugging 2009-02-25 20:09:57 -08:00
david parsons 3db018955d Stupid posix AND stupid Solaris. 2009-02-25 20:02:27 -08:00
david parsons 12a5de9756 Quelle Surprise, character classes just /don't work/ when complemented.
Stupid posix.
2009-02-25 19:59:12 -08:00
david parsons 8ec8cb67e6 1. Add -L. and -I. to the definition for CC, so that
headers and libraries will be picked up from the
    current directory first.
2.  Add prototypes for mkd_xhtmlpage() and mkd_style()
    to mkdio.h/markdown.h (as needed)
2008-10-04 18:13:33 -07:00
david parsons 89b513d761 If theme is given a directory argument, attempt to open the
file ``index'' in that directory.
2008-09-02 22:09:58 -07:00
david parsons 8128a25467 Version 1.2.9 is 1.2.8 with the 1.2.8 changes put in. 2008-08-22 08:21:13 -07:00
david parsons 7d414e7a23 Up to version 1.2.8 ( --relaxed-emphasis, atx header pruning, -nohtml) 2008-08-11 21:19:41 -07:00
david parsons f84c14a8d6 Reorder the --help output from configure.sh to show all the
--enables in a block.
2008-07-30 22:31:45 -07:00
david parsons 70a8fb2dc7 Don't do `--with-superscript'', do `--enable-superscript'' 2008-07-30 22:30:28 -07:00
david parsons a056718add Back out the inadvertantly backed out changes to mkdio.c 2008-07-25 18:18:32 -07:00
david parsons eb88040d96 #ifdef around the superscript code in generate.c 2008-07-25 18:17:51 -07:00
david parsons 68c2f9937a Version 1.2.6: YES, MORE XCODE FIXES! 2008-05-23 21:50:24 -07:00
david parsons da300839a1 Version 1.2.4: fix a bug with --disable-dl-tag 2008-04-28 17:59:18 -07:00
david parsons 995a7147c0 1. Correct dl.t so that it correctly tests the absence of
the DL_TAG extension.
2. In Makefile.in, have ``make test'' abort after the first
   failed test.
2008-04-27 06:50:59 -07:00
david parsons f0f8ef5ecd Bugfix: always compile isdefinition(), but if dl lists
are not defined, #ifdef it to return 0 (bug reported by
Mark Raddatz.)
2008-04-27 06:43:08 -07:00
david parsons 3b2735d6c7 Add a test for multiple =tags= 2008-04-16 16:26:22 -07:00
david parsons 40ee23a9aa Allow multiple <dt>s on a definition list item. 2008-04-16 16:22:42 -07:00
david parsons 477f4f8e28 Document ``markdown -t text'' 2008-04-15 22:48:59 -07:00
david parsons b725ce38e8 1. Forgot to adjust the argument when parsing -fno<thing>.
2. Add testcases for xml/html output & MKD_CDATA
2008-04-15 22:41:26 -07:00
david parsons 9e94e0503c Add textmode (-t text) to markdown, so I can
test the output of mkd_text.
2008-04-15 22:34:04 -07:00