david parsons
199213eb2e
Modify theme so that I can pass in options (with -C & -c; -o is used)
2012-04-03 13:23:21 -07:00
david parsons
561ddc6620
strip out the (orphan? does not affect the test suite) code that calls linkyformat() with a NULL ref
2012-03-08 12:14:16 -08:00
david parsons
190bff643b
Modify the search order for shared library detection (macOS weirdness)
2012-03-07 08:41:08 -08:00
david parsons
e645861ae2
Tweaks to argument handling
2012-03-07 08:40:42 -08:00
david parsons
a8810a6e5c
Be paranoid; check to see if S(t->text) before looking at T(t->text)
2012-03-07 08:40:21 -08:00
david parsons
6eacbc931b
I macro if(e) into if( (e) ) if gcc or clang are detected
2012-01-24 09:53:51 -08:00
david parsons
a8a4d287be
I don't need to turn off unused value warnings in clang now that I've reworked CLIP()
2012-01-24 09:49:47 -08:00
david parsons
b591d39757
Rework the internals of CLIP() so that it always assigns something to S(t);
...
this makes anal-compulsive C compilers (I'm looking at _you_, clang) stop
whining about unused values in expressions.
2012-01-24 09:40:42 -08:00
david parsons
f171d49d6d
Tweak the configure process to
...
1. Report back which broken compiler was detected (IS_GCC or IS_CLANG)
2. If the offending compiler is gcc or clang, add appropriate -Wno-
flags to make it stfu about constructs that Big Brother disapproves
of.
3. emit the substitutions for CC and CFLAGS during AC_OUTPUT instead
of during C compiler detection (this means that if you don't check
for a C compiler, CC and CFLAGS will get set to the empty string
in substituted files!)
2012-01-23 22:09:14 -08:00
david parsons
6c1737eacd
don't forget to include tags.h
2012-01-23 22:05:24 -08:00
david parsons
57ea29d87f
Add $LFLAGS to the build line for theme
2012-01-19 08:15:28 -08:00
david parsons
dc674a3da0
add a dummy cast to the two sort_by_... functions to make clang and gcc
...
shut the fuck up about pointer type mismatches.
2012-01-19 02:39:38 -08:00
david parsons
e12f83d6e0
Split CFLAGS into CFLAGS & LFLAGS (clang whines about -L when not linking.)
2012-01-18 18:27:17 -08:00
david parsons
067891f3c6
Add a testcase for reported defects (and the desired output)
2012-01-16 13:08:52 -08:00
david parsons
734161e9e1
Take out the block-level html test for (non-block) <br> tag
2012-01-16 12:04:59 -08:00
david parsons
3304d5b246
<br> is not a block-level html element
2012-01-16 12:02:34 -08:00
david parsons
5a22224051
Add a dummy rule for VERSION (workaround for mingw bug?)
2011-12-16 11:59:04 -08:00
david parsons
a95338fb92
Add a testcase for table alignment with leading |'s
2011-12-07 06:55:12 -08:00
david parsons
177508fe6d
Table handling for tables with leading |'s is still messed up;
...
if the table has leading |'s, trim them off every table line
before processing the table.
2011-12-07 06:51:34 -08:00
david parsons
96338942d1
Changes contributed by Stefano D'Angelo to clean up the toc html
2011-11-23 18:26:23 -08:00
david parsons
b3eb76406c
Take out the / between $(DESTDIR) and the target directories in
...
the install rules; Works around (maybe) a defect in Cygwin where
a leading // introduces a Microsoft-style nfs pathname.
2011-11-23 17:14:03 -08:00
david parsons
094b09800e
1. In configure.inc, check for (and comment disapprovingly) if someone is inflicting clang on discount.
...
2. strip types off `main()`s so that stupid clang won't die.
2011-10-06 23:26:33 -07:00
david parsons
ae3b183887
Work around a defect in clang v3
2011-10-06 15:29:26 -07:00
david parsons
a888c16a4f
1. Horribly hack splat() so that it trims off leading and trailing|'s
...
2. change the test cases to reflect the new output
3. Add a pair of test cases to catch table tweaks
2011-09-26 01:20:35 -07:00
david parsons
d09db0993c
Rework the table detector logic so that it checks regular markup blocks.
2011-09-25 23:29:31 -07:00
david parsons
40e61f6c5a
I messed up the endash & emdash smartypants versions when I wrote discount,
...
and didn't realize I'd done that until John Foerch sent me mail today pointing
out the defect. Whoops!
2011-07-31 11:14:42 -07:00
david parsons
990076f657
Change text blocking; the reference version doesn't split code off from text
2011-07-28 18:26:18 -07:00
david parsons
1732be2478
Tweak the output format for a failed test to give the source and the diff between what we wanted and what we got.
2011-07-28 13:51:34 -07:00
david parsons
b757cb8b2e
Add test cases for fenced code blocks with tildes, paragraph with attached tildes
2011-07-22 10:01:39 -07:00
david parsons
78db997a4b
Support pandoc-style fenced code blocks with nested lines of tildes
2011-07-22 09:58:01 -07:00
david parsons
961e6740b7
Have mktags generate blocktags[] as a static array
2011-07-22 00:38:55 -07:00
david parsons
6cb4031660
Strip out functions from mktags, then rename the remaining ones
...
so they won't collide with the library functions. Admittedly,
it's not very likely that there would be a collision (the whole
idea behind mktags is that it NOT be included in the library),
but why not be extra paranoid?
2011-07-22 00:28:32 -07:00
david parsons
07c10928ba
Optimize the html block tag list handler; standard html tags now live in a static array
...
and html5 (or other) tags are added to an extratags array that is only searched
if the tag can't be found in the standard one.
2011-07-22 00:21:10 -07:00
david parsons
5dd053c0de
Add a testcase for tildes that aren't actually attached to text
2011-07-21 23:49:53 -07:00
david parsons
3af062a7f9
Tweak ~ (strikethrough) handling to NOT strike through unless
...
the starting ~~'s are adjacent to non-whitespace.
2011-07-21 23:41:19 -07:00
david parsons
18b6508bb2
Clean up (for some values of "clean up") the end of text block detection code
2011-07-21 23:36:51 -07:00
david parsons
2fd979bdc4
Add a configuration check to see if the inline keyword is defined.
...
If it's defined, use it on a bunch of small static functions that
are used a lot.
2011-07-21 23:16:49 -07:00
david parsons
92226dfb60
Why check flags & CHECKED in checkline() when I'm already checking it before calling?
2011-07-21 13:03:47 -07:00
david parsons
ed67967a9e
Add some more test cases for fenced code blocks
2011-07-20 23:22:18 -07:00
david parsons
4274dcf06b
Tweak fencedcodeblock() so it ignores empty fences and non-terminated fences
2011-07-20 23:16:33 -07:00
david parsons
f2d50caa02
Add test cases for fenced code blocks
2011-07-20 18:45:11 -07:00
david parsons
6871b93371
Wrap fenced code blocks inside a configure option.
2011-07-20 18:44:57 -07:00
david parsons
5c2c40ea72
Streamline up etx header detection
2011-07-20 18:09:29 -07:00
david parsons
65035be7b7
First pass at fenced code blocks (delimited with ~~~'s, not
...
necessarily the same number at start and finish)
2011-07-20 17:59:47 -07:00
david parsons
a6835ff673
There are half a dozen regular line patterns that I repeatedly scan for here;
...
pull them out into a separate function that looks for them and stores the
pattern types in the line structure, and then use that stored type instead
of scanning over and over again.
Also tweak the blockquote identifier to use the dle field instead of
hand-scanning across the leading whitespace.
2011-07-20 16:59:59 -07:00
david parsons
8b4aceb22e
Document the new -E option for theme
2011-07-13 11:03:27 -07:00
david parsons
d4ea79f47a
Add a -E flag to theme to allow <?theme expansions
...
everywhere (except in html comments) instead of being
context-sensitive
2011-07-13 10:56:24 -07:00
david parsons
f74081b150
Add an alias (MKD_NOEXT) for MKD_NO_EXT
2011-07-13 10:24:25 -07:00
david parsons
4bfcc6f18b
Version 2.1.0 is coming on up the pike even as we speak
2011-06-07 15:55:20 -07:00
david parsons
7970b96db8
Don't forget to add rules to make $(BINDIR), $(INCDIR), $(LIBDIR), etc
2011-06-07 15:55:01 -07:00
david parsons
daea708b3b
Write scratch files (sources, binaries) into the current directory
2011-06-07 15:54:32 -07:00
david parsons
e6d538d65e
Document the -V, -f, and -F flags for makepage(1)
2011-05-23 13:43:20 -07:00
david parsons
0f510f36e9
Tweak configure.inc to put all tempfiles into $cwd
...
also check to see if the compiler generates macos dSYM files
and clean them up if it does.
2011-05-23 11:43:48 -07:00
david parsons
80c04f45e8
Change makepage so that I can feed it options
...
with `-Fxx`, `-fname`, or the environment variable
`MARKDOWN_FLAGS`; this means I needed to split the
options parsing code out of main.c into its own file
that can be included wherever.
2011-05-23 10:59:11 -07:00
david parsons
9cbe5f682a
Don't use bitfields in the opts[] array; plan9 cc doesn't like it
...
(and I trust plan9's implementation, despite the prime movers
scampering off to Evil Inc, more than I trust gcc)
2011-05-05 15:09:27 -07:00
david parsons
2f6ebb315d
Build echo and cols along with the rest of the executables, instead
...
of at test-time
2011-05-03 09:58:25 -07:00
david parsons
d59c41f379
Version 2.0.8: modify configure.inc so that the test executables
...
it creates are **not** in `/tmp`; some modern commercial Linuces ship
with `/tmp` mounted `noexec`, which has unhappy side effects.
2011-05-03 09:54:06 -07:00
david parsons
f84cbf75a7
In mkd_string_to_anchor(), don't forget that mkd_line() can return EOF
2011-03-21 15:37:49 -07:00
david parsons
3ea4599547
Cosmetic tweaks for the display output for -F? and -f?
2011-03-01 20:47:30 -08:00
david parsons
b7b3141309
Note the existance of | characters when reading in our input;
...
flagging them here keeps us from calling `memchr()` three(**!**)
times on every line.
2011-03-01 10:23:28 -08:00
david parsons
0be590709c
Tweak table handling to hew more closely to the markdown extra implementation.
...
In particular, expand `\` escapes to include `:` and `|`, and follow how
the markdown extra dingus treats escaped line parts.
2011-03-01 10:02:13 -08:00
david parsons
cd12966243
Documentation patches from David Banks; correct the documentation to show the actual return values from mkd_generatecss
2011-02-28 06:56:22 -08:00
david parsons
1eec2c8021
Merge git://github.com/MagLev/discount
2011-02-27 19:15:14 -08:00
david parsons
92ceec70a8
Revert the ANCHOR_DEFAULT_CHAR code.
2011-02-26 14:20:51 -08:00
david parsons
448036afc2
Re-enable the toc tests for --with-id-anchor
2011-02-25 23:40:50 -08:00
david parsons
b582763bcc
Add new flag --with-github-tags to modify maybe_tag_or_link() to include _ & -
2011-02-25 23:20:17 -08:00
david parsons
87dfe36745
Merge ../discount
2011-02-25 23:15:09 -08:00
david parsons
fa2581197e
Add support for listing flags in the markdown program
...
by having the option `-f?` describe the named flags and `-F?`
describe the flag values.
2011-02-25 23:13:30 -08:00
david parsons
acdd58b6f0
Add new config options to support old-style table of contents links.
...
--with-id-anchor makes discount use `id=` instead of `a name=`, and
--with-anchor-default=C makes discount use the character C instead of
`.` for illegal characters in anchors.
2011-02-25 22:43:04 -08:00
david parsons
94fee6a9af
Merge ../discount
...
Conflicts:
generate.c
2011-02-24 20:49:06 -08:00
david parsons
c0eeb54192
include stdlib.h to make gcc stfu about exit()
2011-02-18 23:05:56 -08:00
david parsons
2acc61dd12
Version 2.0.7 further tweaks markdown extra-style footnotes
2011-02-18 22:35:00 -08:00
david parsons
3652205505
document the -C option (calls mkd_ref_prefix()) and -ffootnote (enables markdown extra style footnotes)
2011-02-18 22:34:32 -08:00
david parsons
8fc4cc3729
Add a test for markdown extra footnotes with a defined prefix
2011-02-18 22:31:48 -08:00
david parsons
450f5e5d80
Rework the try function to support multiple option arguments (starting with -)
2011-02-18 22:31:23 -08:00
david parsons
3c948d20bf
Document php markdown extra-style definition lists and footnotes.
2011-02-18 22:25:34 -08:00
david parsons
b4ffe19529
Add the mkd_ref_prefix() function to set the prefix for footnotes from fn to some user-supplied value.
2011-02-18 22:16:13 -08:00
david parsons
db2092b36d
Document MKD_EXTRA_FOOTNOTES
2011-02-17 20:39:29 -08:00
david parsons
e912a8f405
Explicitly zero foo->flags when creating a new footnote
2011-02-17 18:55:46 -08:00
david parsons
d3ff8d7129
Add a pair of test cases for markdown extra footnotes
2011-01-29 20:55:45 -08:00
david parsons
2b6ea3799e
create a typedef for the function argument to mkd_string_to_anchor, because some
...
compilers (and by some compilers, I mean "gcc") whine bitterly when you pass a
function argument with with a more specific pointer in place of a void*. And if
I can't trust the compiler to emit sensible warnings, I'll just cast the damned
argument to a type that makes it stfu.
In addition, I needed to add prototypes for the html5 tag adder and the two
functions that spit out a list of the flags that the code was compiled with.
2011-01-29 11:00:54 -08:00
david parsons
625a80b2d4
Merge branch 'extra-footnotes' of ../discount.branch
2011-01-29 10:40:30 -08:00
david parsons
cdfbe70b51
In dumptree(), don't spit out the paragraph blocking if it's
...
nothing or `<p>` (most everything is `<p>` blocked, so saying
it doesn't actually tell anything.)
2011-01-28 22:12:03 -08:00
david parsons
cecde1de9a
Rework the TOC code so that it uses an a name= anchor
...
instead of `hx id=` (because the id= may pick up css unexpectedly.)
2011-01-25 05:05:17 -08:00
david parsons
27bb2061f7
Rework the TOC code so that it uses an a name= anchor
...
instead of `hx id=` (because the id= may pick up css unexpectedly.)
2011-01-24 17:05:44 -08:00
david parsons
6cad766ca7
Two changes
...
1. in `linkyformat()`, don't pass in `&imaget` for image formats; pass
in null instead and add a paranoia check to default to &imaget if
the passed-in footnote is null.
2. tweak the librarian generator so it doesn't require ln -s for static libs
2011-01-23 22:23:27 -08:00
david parsons
80ad1f7498
Repair a defect in the way >%class%es are handled;
...
css class names are `{-_.A-Za-z}{-_.A-Za-z0-9}*` (plus some unicode characters
which I don't support yet.)
2011-01-19 09:24:06 -08:00
david parsons
a89b8c167a
Merge ../discount into extra-footnotes
2011-01-15 18:17:05 -08:00
david parsons
335d4cdb80
Don't treat markdown extra footnote contents specially if MKD_EXTRA_FOOTNOTE is not set.
2011-01-13 12:05:24 -08:00
david parsons
5a019adc0c
Add flags to enable/disable markdown extra footnotes
2011-01-13 12:02:12 -08:00
david parsons
566ee12c94
Version 2.0.4, finally.
2011-01-13 11:50:00 -08:00
david parsons
c9e216dafb
php markdown extra footnote support.
2011-01-13 09:53:46 -08:00
david parsons
73e837fb99
Fail the configuration if the WORD/DWORD generator doesn't work.
2011-01-13 09:49:48 -08:00
david parsons
9a8436fcbf
Tweak the initialization in CREATE() to work around gcc deficiencies
2011-01-13 09:47:51 -08:00
david parsons
6544b62e5b
Add manpages for makepage(1) and mkd2html(1) (provided by Alessandro Ghedini)
2011-01-10 11:43:05 -08:00
david parsons
74a0fb7400
bump up the beta version
2011-01-10 06:22:35 -08:00
david parsons
1a055b60e1
Brutally hack away at the shared library support.
...
Restructure it so that all the library making is done
inside the (generated) shell function `librarian.sh`
and hope that the C compiler has the brains that god
gave a rock (on MacOS it doesn't) and will pick up our
libraries before going after the system ones.
2011-01-09 22:37:50 -08:00
david parsons
36810e0567
s/Compatability/Compatibility/g
2011-01-09 10:10:48 -08:00
david parsons
9837ecc1f9
Add a few tests for unclosed style blocks
2011-01-06 08:22:19 -08:00
david parsons
b8658677b0
Fix a typo in a comment in emmatch.c; add a truncated block test to tests/html.t.
2011-01-05 12:25:06 -08:00