NOTICE: This package has been removed from pkgsrc

./wip/discount, Markdown C implementation

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 2.0.9, Package name: discount-2.0.9, Maintainer: zecrazytux

Markdown is a text-to-HTML conversion tool for web writers. Markdown
allows you to write using an easy-to-read, easy-to-write plain text
format, then convert it to structurally valid XHTML (or HTML).

The overriding design goal for Markdown's formatting syntax is to make
it as readable as possible. The idea is that a Markdown-formatted
document should be publishable as-is, as plain text, without looking
like it's been marked up with tags or formatting instructions. While
Markdown's syntax has been influenced by several existing text-to-HTML
filters, the single biggest source of inspiration for Markdown's
syntax is the format of plain text email.

Original Markdown implementation is written in Perl. Discount provides a
Markdown CLI tool and a library, written in C.


Master sites:

SHA1: 861e0eaa6ff7ff109b7717c2c51ee95ab5db4b1e
RMD160: 81c4261f2e2054a133dae7e88d4daf0a35a87239
Filesize: 78.89 KB

Version history: (Expand)


CVS history: (Expand)


   2013-04-04 11:41:37 by Thomas Klausner | Files touched by this commit (6) | Package removed
Log message:
Remove discount, imported to pkgsrc/textproc.
   2013-04-04 11:38:15 by Thomas Klausner | Files touched by this commit (2)
Log message:
Update to 2.1.6:

version 2.1.6 does nothing except for some bugfixes (and ignores some \ 
particularly scary ones that I /must/ fix soon) and adds two small features.

The bugfixes are:

    A < at the end of the input is exactly the same as <(space)
    Markdown.pl does not appear to escape \<[nonwhite] sequences. Sigh.
    Tweak the previous Markdown does not escape... commit to simply push out the \ 
backslash and back up to the start of the <[nonwhite] sequence, so -fnohtml \ 
will continue to work.
    Treat hard <br/> (via two spaces) as whitespace.
    Tweak divquote handling so that two adjacent divquotes won’t die if \ 
there is a space between the second > & leading %
    Tweak one of the list tests back to the previous behavior (I’ve put in \ 
a hack for list indentation, and accidentally committed the changes. Oops!)

The features are that I now use styles for table cell alignment instead of \ 
align=, and that I’m using the 3-clause BSD license for this release \ 
(because there is one widely used closed-source license that claims that you \ 
can’t dynamically link with code that uses the 4-clause license. Fine. \ 
I’ll 3-clause this release to make the stupid GPL happy.)

version 2.1.5a does even more cleanup to deal with clang, plus adds a few small \ 
features:

    MKD_NOSTYLE – treat <style> blocks as regular html.
    some github flavored markdown support; gfm_…() input methods that put \ 
hardbreaks (== two spaces) at the end of every input line.
    support for github flavored markdown backtick-delimited code blocks (in \ 
addition to tilde-delimited codeblocks)
    in the markdown program, add
        -S flag (tell markdown to spit out style sections)
        -n flag (tell markdown not to output generated text)

version 2.1.3 cleans up a couple of bugs that have been here for a while, plus \ 
tweaks the build process a bit for better compilation with the LLVM C compiler, \ 
mingw, and cygwin.

The bugfixes are

    Stop tripping over tables with leading |s; the first implementation of \ 
tables treated leading |s as the end of an empty table cell. 2.1.3 corrects this \ 
to properly be merely decoration.

    As a side-effect, you now need to have all the rows of the table either with \ 
a leading | or not; you cannot mix and match them, sorry.

    For some mysterious reason I was treating the <br> tag as a \ 
block-level html tag, so my html blockifier would split paragraphs with explicit \ 
<br>s in them.

    The table of contents code was apparently generating bad html (something I \ 
never noticed, because I never use that feature, alas!) but Stefano D'Angelo \ 
contributed a patch to clean up the generated html to make it correct.

version 2.1.2 tweaks table handling so that tables with leading |’s \ 
won’t end up generating empty false <td></td>s, and that tables \ 
with trailing |’s won’t end up getting those pipes included in the \ 
output.

version 2.1.1.3 corrects a defect in smartypants processing that has been there \ 
since the beginning of time; I’d managed to misread the reference \ 
smartypants documentation and thought that 1 dash made an &ndash; and 2 \ 
dashes made an &mdash; (it’s actually 2 and 3 dashes respectively.) \ 
John Foerch read the documentation recently, noticed it was wrong, and sent me a \ 
note pointing it out. Whoops! But it’s fixed now (as is the this page, \ 
which is, regrettably, the only documentation about smartypants.)

version 2.1.1.2 corrects one small defect in block handling, plus changes the \ 
format of the output for failed tests in the test suite.

The defect in block handling is that the reference implementation has text block \ 
absorbing adjacent code, so

text text text
    code

will generate

<p>text text text code</p>

instead of a paragraph of text(s) followed by code.

The change in failed test output makes it output first the source code of the \ 
failed test, and then the differences between the expected output and the \ 
generated output.

version 2.1.1.1 implements PHP markdown extra-style fenced code sections, where \ 
your chunks of code are surrounded by ~~~ lines instead of being indented 4 \ 
spaces.

Fenced code sections are a configuration option, not a runtime option, and are \ 
enabled by using the configure.sh flag --with-fenced-code (FENCED-CODE in the \ 
version string).

There are a few optimizations inside markdown.c to support fenced code detection \ 
without slowing the parser down, but those optimizations don’t cause any of \ 
my test cases to fail. Version 2.1.1 is still a fairly experimental release \ 
despite this, so take some care with it.

version 2.1.0 cleans up a small collection of warts and build bugs, plus adds \ 
some fairly small enhancements to the theme and makepage programs:

    more modifications to configure.sh so that it generates all its 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 ignore context-sensitivity on <?theme xxx?> \ 
substitutions.
   2012-09-28 23:24:30 by Aleksej Saushev | Files touched by this commit (99)
Log message:
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Mark packages that don't or might probably not have staged installation.
   2011-05-11 10:52:05 by Filip Hajny | Files touched by this commit (3)
Log message:
Updated wip/discount to 2.0.9.

Version 2.0.9

* Workaround for configure and noexec-mounted /tmp.

Version 2.0.8

* Table processing modified to make it hew closer to the markdown extra
  implementation.
* Optimized the code that's used to look for tables by scanning for pipe
  symbols when I'm reading data into the input lines array.
* 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. Also,
  -F? gives a list of the known flag bits.
* --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.)

Version 2.0.7

* Finishes support for php markdown extra-style footnotes.
* Manpage typos corrected (patch from Alessandro Ghedini).
   2011-05-11 10:12:14 by Filip Hajny | Files touched by this commit (3)
Log message:
Fix DESTDIR support.
   2011-02-17 22:01:41 by Sébastien BOCAHU | Files touched by this commit (4)
Log message:
Upgraded to version 2.0.6: Add new extras and a shared library.
   2010-11-03 23:10:57 by Sébastien BOCAHU | Files touched by this commit (1)
Log message:
discount installs libmarkdown as a static library only
   2010-11-03 22:54:20 by Sébastien BOCAHU | Files touched by this commit (1)
Log message:
Added a buildlink3.mk file to discount (which provides a library, libmarkdown)