./textproc/lowdown, Simple Markdown translator

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.0.2, Package name: lowdown-1.0.2, Maintainer: pkgsrc-users

lowdown is just another Markdown translator. It can output traditional
HTML or a document for your troff type-setter of choice, such as
groff(1), Heirloom troff, or even mandoc(1). lowdown doesn't require
XSLT, Python, or even Perl - it's just clean, secure, open source
C code with no dependencies.


Master sites:

Filesize: 577.726 KB

Version history: (Expand)


CVS history: (Expand)


   2023-05-26 22:38:47 by Amitai Schleier | Files touched by this commit (5)
Log message:
Update to 1.0.2. From the changelog:

1.0.2:

Accept DOS CRLF newlines in all situations. Prior to this, CRLF newlines
would cause problems in some contexts.

Add support for pandoc title blocks as a metadata block syntax choice.
Pandoc and MMD syntaxes are mutually exclusive, so only one may be used
in any given document. The syntax is documented in lowdown(5).

While there, support starting and ending an MMD metadata block with
"---" on its own line, as in the MMD specification.

Add the --html-titleblock option. If specified, output a Pandoc-style
title header.

Pandoc has a poorly-executed feature where -stman outputs have the title
metadata line additionally parsed into a manpage title, section, and
optional source and volume. This allows titles like `TITLE(1) Source |
Volume` to be split into their respective manpage parts -- but only when
in -stman mode, so an HTML document generated from the same page will
not inherit the additional parsing. In lowdown(5), introduce this
parsing for all outputs if --parse-mantitle is specified, which is now
the default.

Behaviour change: do not use "Untitled article" as the default title for
media supporting (or requiring) titles when in standalone -s mode.
Instead, just the empty string if a title is required. This is a more
logical choice: not only is "Untitled article" language-specific, it
also assumes the output is an article. For the previous behaviour,
`--mtitle="Untitled article"` may always be used.

Fix support for GFM tables. Specifically, don't arbitrarily require a
certain three or more dashes/colons per cell in the layout row. Also
allow for escaped vertical bars in the header row.

1.0.1:

Numerous build and configuration improvements (via oconfigure) for
building into WASI targets and on Mac OS X.

Add -L for listing all metadata keys.

Some fixes to smart typography around hard linebreaks. These aren't
likely to affect normal documents.

Recognise void HTML elements as block elements.

Switch between types (e.g., unordered to ordered) instead of continuing
with the current list type. Fix parsing of block versus non-block lists
when switching between list types. Fix parsing of block versus non-block
lists when sublists contain block elements, but top-level lists don't.
The Markdown spec isn't clear on how to accept these instances, so use
pandoc as a guiding tool.

For -tman output, normalise list marker widths (unordered or ordered)
to three spaces by default, increasing for ordered lists depending on
the number of entries. For -tms, it's five. Make other small cleanups
to -tms, making sure that paragraph indentation looks the same as
with -tlatex.

Fix that escaped text (e.g., `\-\-foo`) is not changed by the smart
typography formatter.

Use `TP` in -tman for definition lists. To align with existing
lists, use a subsequent paragraph offset of three. Similarly, use
`XP` for -tms.

pkgsrc changes:

- Libtoolize for portable shared libraries.
   2023-05-26 20:03:32 by Amitai Schleier | Files touched by this commit (1)
Log message:
Quell pkglint.
   2023-05-26 20:01:28 by Amitai Schleier | Files touched by this commit (1)
Log message:
Indent.
   2022-06-27 17:29:18 by Frederic Cambus | Files touched by this commit (41)
Log message:
*: drop maintainership for packages not related to toolchains and ELF.
   2022-05-29 17:54:09 by Frederic Cambus | Files touched by this commit (2) | Package updated
Log message:
lowdown: update to 1.0.0.

Version 1.0.0, 2022-05-28

Very minor repairs. All of the functionality and stability for a v1 release
is in place. "Make it so, number one!"
   2022-03-29 16:04:50 by Frederic Cambus | Files touched by this commit (2) | Package updated
Log message:
lowdown: update to 0.11.2.

Version 0.11.2, 2022-03-27

Support native roff escapes instead of using Unicode escapes. (This is a
work in progress, as there are many.) This makes special characters usable
in sections and so on.

Fix a bogus free when running lowdown-diff(1). While here, handle differences
between totally-different files, where before we would error out.

Document how differences are displayed in each output mode, as well as how
metadata is a special case. Fix -tterm ANSI escape filtering for background
colour, allowing changes to be viewed again.

Fix a sneaky -tterm bug found by AFL where having the number of footnotes
change digit length (e.g., 9 to 10) within a table would cause an assertion.

Another big thanks to Michael Dexter in providing hardware for continuously
running AFL and finding some of these corner case bugs!
   2022-03-12 22:26:19 by Frederic Cambus | Files touched by this commit (2) | Package updated
Log message:
lowdown: update to 0.11.1.

Version 0.11.1, 2022-03-05

- Have -tlatex process header identifiers, both automatically generated
  and from PHP extra attributes. Allow linking to these within the document
  body.

- Have -tms print that an image happened instead of just omitting it
  entirely. It now behaves like -tman in this regard.

- Fix where -tterm would print double-spaces in certain conditions.

- Have extended attribute classes apply as OpenDocument classes in -tfodt.
   2022-02-23 09:20:30 by Frederic Cambus | Files touched by this commit (4) | Package updated
Log message:
lowdown: update to 0.11.0.

Version 0.11.0, 2022-02-21

Add class and identifier extended attributes to headers. These are
stipulated in PHP Markdown Extra. Documentation in lowdown(5).

When using header identifiers (the default) and the names collide, use
pandoc's method of creating unique header names. Also handle the case of
markup in headers and the identifier created from those to also be like
pandoc. This isn't a fix, but rather make output consistent with other
tools.

Fix output of how links are handled in -Tms when part of headers. The same
applies to other block-level macros with link children such as in
definition lists. This also cleans up how headers are shown in the PDF
TOC. While here, make header identifiers the same as in -Thtml so that
intra-document links are consistent, and enable linking within a document
using the PDF markers.

Fix footnotes to be actual footnotes in -Tlatex and -Tms instead of
endnotes. The other formats (-Tman, etc.) all continue to use endnotes.
The note system has internally been cleaned up and now allows for more
flexible note placement, e.g., side-notes.

Allow footnotes to properly exist in -Tlatex tables. Also allow for table
alignment.

Bump the minor number as the ABI has been tidied up with respect to
footnotes: they're now all in their LOWDOWN_FOOTNOTE blocks instead of
split into definitions and references. The LOWDOWN_DOC_FOOTER element,
which was not used, has also been removed.

The system in general has spent many, many computer-hours being fuzzed
with AFL thanks to hardware donated by Michael Dexter. Thank you!

Finally, make -T be a synonym for the new -t, which is used by pandoc.