Tags: OliverLetterer/discount
Tags
Support PHP markdown extra-style fenced code blocks (delimited with lines of three or more tildes.) This involved some optimization of the blockification code in markdown.c -- I now cache line type in the line and have a cache filling function (`checkline()`) that will compute the line type _once_ and then all the lookup functions can use this cache. It's not significantly faster than the old code (1/100th of a cpu second faster processing 10 450k documents) but it's also doing the line check for fenced code blocks.
Version 2.1.0; * modifications to `configure.sh` so that it generates all the test scripts in the build directory * more MacOS support in `configure.sh`; check to see if `.dSYM` folders are created when a test script is compiled, and, if so, don't forget to delete them when they're cleaned up. * `makepage` now accepts markdown option flags a'la the `markdown` program (via `-Fxxxx`, `-fname`, or in the `MARKDOWN_FLAGS` environment variable.) * strip bitfields out of `opts[]` -- I can't initialize a bitfield on plan9 cc. * add a `-E` flag to `theme` to disable context-sensitive `<?theme xxx?>` substitutions.
Tweak `configure.inc` to write executables that it wants to execute into `$__cwd`; some modern Linuces ship with `/tmp` marked `noexec` and my chances of getting them to change that are about as good as my chances of making the gcc cabal change gcc to be a C compiler again.
* Modify table handling to make it hew closer to the markdown extra i… …mplementation * Put an optimization in to make table detection faster * Documentation patches from David Banks * argument prototype tweaks for Solaris, from Allen Otis * `--with-github-tags` configuration option to to include `-` and `_` in the acceptable characters for `maybe_tag_or_link()` (code from Ryan Tomayko's discount SCCS on github.) * in the `markdown` program, `-f?` gives a list of the known flags. * `--with-id-anchor`` configuration options to have the table of contents code emit `id=` instead of the dummy `<a name=` anchor I replaced it with (`name=` is depreciated in xhtml, and may vanish.
Further work on markdown extra-style footnotes; - documentation - add `mkd_ref_prefix()` function to change the footnote ids from `fn`... to a user-defined one - clean up one bug where I didn't initialize the markdown extra footnote flags Plus a small patch to correct minor documentation typos
* Rework the TOC code so that it uses an `a name=` anchor instead of `hx id=` (because the id= may pick up css unexpectedly.) * 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. * tweak the librarian generator so it doesn't require ln -s for static libs * 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.)
PreviousNext