The NetBSD Project

CVS log for pkgsrc/textproc/lowdown/PLIST

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / textproc / lowdown

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Oct 27 13:53:22 2026 UTC (2 weeks, 5 days ago) by adam
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
lowdown: updated to 3.2.1

3.2.1

Add table wrapping in -tterm mode, where long columns are broken at word
boundaries when exceeding the document width. This uses a simple algorithm at
the cost of an extra rendering step. Can be disabled with --term-no-tablewrap.

Also add --term-no-style, and have --term-no-ansi instead fall back to using
backspace encoding instead of ANSI.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Jul 24 18:20:09 2026 UTC (3 months, 3 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -2 lines
lowdown: update to 3.1.1.

Remove libtoolization; too much work to keep it updated for no
users of the library in pkgsrc, and probably won't be accepted by
upstream.

Version 3.1.1, 2026-07-19

Fix for install failure via install_lib_common.

Allow for CommonMark list-after-paragraph.

Use newest oconfigure for use on old macOS machines.

Version 3.1.0, 2026-07-18

Flesh out how attributes are handled for links, images, and headers.
Prior to this, only .class and #id were handled, along with some
per-type values like width. This is now fully generalised, where
any key-value (or value-less) pairs may be given. "Known" pairs,
like rel=external, may be thus given, depending on the medium.
These are all documented. If the command-line argument for custom
attributes is given, arbitrary key-value pairs may be given.

This changed the public API for the library, so the library major
number has been bumped.

The --roff-manpage output has been improved for ERRORS and ENVIRONMENT
sections, along with some other small bugfixes.

Improve how fenced code blocks are handled when not in their own
block (with prior newline). Prior to this, fences weren't recognised
as being blocks in that situation. Allow this for both list items
and as paragraph breakers.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Mar 9 17:32:36 2026 UTC (8 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
lowdown: update to 3.0.0.

Added initial support for outputting modern Unix manpages with
-tmdoc. This is intended as a replacement for the legacy -tman.
Supplement this with --roff-manpage, which accepts a markdown file
that looks like a Unix manpage and attempts to convert it into a
well-formed mdoc or man. Most of this is purely syntactic, but
several sections in Unix manpages (e.g., the NAME and SYNOPSIS)
have a rigorous syntax that this mode attempts to output.

Several minor (but breaking) changes to the API to take up fewer
bits in the oflags field of struct lowdown_opts: consolidate all
XXX_NOLINK, XXX_RELLINK, and XXX_SHORTLINK as LOWDOWN_NOLINK,
LOWDOWN_RELLINK, and LOWDOWN_SHORTLINK. This only applies to the
LOWDOWN_MAN, LOWDOWN_MS, and LOWDOWN_TERM output modes. The earlier
LOWDOWN_NROFF output mode is deprecated and is now an alias for
LOWDOWN_MS, which should be used moving forward.

Do the same with the various XXX_SKIP_HTML bits.

Deprecate the lowdown_nroff_xxx in favour of lowdown_roff_xxx. The
functions remain as deprecated and passing through to the new
equivalents.

Deprecate the macro variables LOWDOWN_NROFF_GROFF LOWDOWN_NROFF_NUMBERED
LOWDOWN_NROFF_MANPAGE LOWDOWN_NROFF_ENDNOTES in favour of their
ROFF names. The old macros are aliased for compatibility.

Library bumped from version 2 to 3 for those reasons.

Tweak the behaviour of -tterm and --term-no-links (or --term-no-rellinks)
with respect to embedded images and no text so that there's always
a clickable link and image component, if possible.

Add --roff-no-rellinks, similar to --term-no-rellinks. Respect
--roff-short-links in more cases as well.

Change the behaviour of -tms and -tman where --roff-no-links (or
the new --roff-no-rellinks) will have consistent behaviour even if
--roff-traditional is not specified.

Fix that, when using lowdown-diff for the terminal, resetting the
colour after an insertion or delete would trigger the black colour,
which obviously doesn't work with a black background. Instead, use
the default colour.

When generating header identifiers in -thtml, incorporate codespan
text as well. This is the same as pandoc's default behaviour as
well.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Jun 6 23:10:26 2025 UTC (17 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -1 lines
lowdown: update to 2.0.2.

Version 2.0.2, 2025-02-16

Fix table separators in -tterm. Fix running make regress without
a UTF-8 locale set, which would cause different output for the
-tterm tests.

Version 2.0.0, 2025-01-25

Formalise using semantic versioning ("semver"). The prior version
(1.4.0) introduced API changes that were incompatible: future
versions will follow semver to prevent confusion.

Adds some missing template files to the share directory.

Fix how links in -tterm have their ANSI escapes closed out.

Lastly, to address downstream breakage when using nested Mac OS X
sandboxes, a special argument SANDBOX_INIT_ERROR_IGNORE value may
be passed during the make build sequence. If set to always, errors
from the underlying Mac OS X sandbox are always ignored. If set to
any other value, the user must set the environment variable
SANDBOX_INIT_ERROR_IGNORE to ignore these errors. This is only
relevant to Mac OS X builds with the sandbox feature enabled during
configuration.

Version 1.4.0, 2024-12-25

Deprecate the --nroff argument prefix in favour of --roff, so for
example --nroff-traditional becomes --roff-traditional. The old
prefix is retained and will not be removed. Deprecated old forms
(e.g., --nroff-no-groff) did not get a replacement.

Deprecate --term-nolinks and --term-shortlinks in favour of
--term-no-links and --term-short-links, respectively. The old forms
are retained and will not be removed.

Add --term-hpadding and clarify the roles of --term-cols,
--term-hmargin, and --term-width. Also document auto argument to
-term-hmargin. The default output looks the same as it did before,
but --term-hpadding=0 can now omit any leading characters.

Add --term-no-rellinks to omit only relative links. This is useful
because terminal output doesn't have a concept of a "relative"
link.

Add passing literal strings as initial values to --template.

Document --term-hmargin=auto, previously undocumented as centre.

Use UTF-8 sequences for -tterm lines: horizontal lines, tables,
block vertical lines, etc. Simplify the image link output to look
a little more like pandoc.

API change (hence the minor version bump): lowdown_tree_rndr(3)
now also accepts a pointer to the options. This is to enable
debugging of the parse tree of --template. Now, passing -s --template
to -ttree will produce the template's parse tree alongside the
parsed content of the input.

API change (hence the minor version bump): moving terminal-specific
members of lowdown_opts into lowdown_opts_term.

Version 1.3.2, 2024-12-10

Add --template functionality to -tman, -tms, and -tgemini.

Add not() to the --template functions and document escapelatex().
Recognise a special modifier -- at the end of control statements
(e.g., $endfor--$, which consumes up and and including the end-of-line.
This is necessary for integrating templates with roff-based languages
that are line sensitive.

Add escapegemini and escaperoff modifier families.

Clarify that any empty statement, even with only white-space,
evaluates to the $ literal. This simplifies the parser and reduces
corner cases. (Earlier, an empty statement with white-space was
ignored, but an empty statement without white-space was a literal
$)

Version 1.3.1, 2024-12-05

Add --template functionality to -tlatex.

Add and() and or() as initial values to template expressions. These
allow for ifdef to test for multiple values at once.

Version 1.3.0, 2024-11-30

Specify that characters not complying with the metadata key
specification are replaced with underscores (which are allowed by
the metadata key character restrictions) instead of as curently
with question marks (which are not valid metadata key characters).

Add new --template functionality, initially for -thtml. This is
still experimental, so transformations and syntax might change. It
allows for templating the output HTML file.

Version 1.2.0, 2024-10-24

Output OSC8 hyperlinks in -tterm mode. See OSC8 Adoption for the
gist. This won't affect terminals not supporting links (such as
with OpenBSD's default xterm). As of this change, all links (including
image links) and link titles will be clickable in supporting
terminals unless --term-no-ansi is given.

Conditionally output UR/UE or MT/ME macros for -tman links. This
makes links be "live" in some -tman utilities.

Add metadata html header, latex header, ms header, and man header
for adding media-specific invocations in the document headers.

Have footnotes in -tms be linked: clicking on a footnote number
will jump to that footnote in the document.

Introduce --nroff-endnotes, which adds a new flag to the public
API (hence the minor number addition). This delays printing of -tms
footnotes until the end of the document, making them endnotes.

Deprecate the --nroff-no-groff flag in favour of --nroff-traditional,
as the changes it effects equally favour mandoc and Heirloom troff.
Does not change the code interface, which uses the same macro name
as before.

Have metadata not be processed by the "smart" typography at all.
This is because some values are links and others are mainlined
directly into output and should not be touched.

Be specific about the behaviour of nested links. This is inconsistent
across the various Markdown implementations (and CommonMark).
Document and stick to a standard.

Version 1.1.2, 2024-09-29

Add documentation for --html-titleblock and slightly change semantics
where it will print regardless if in -s mode.

Add regression code coverage to main website, include make rules
for generating coverage. Many more regression tests to exercise
coverage.

Version 1.1.1, 2024-09-24

Fix UTF8 handling on Mac OS X. Prior to this, some UTF8 characters
(such as smart punctuation) were being garbled on -Tgemini and
-Tterm output. These now render properly thanks to an excellent
pull request contribution (#140).

Hack around more buggy Mac OS X software, specifically their version
of makewhatis(8). While man(7) specifically allows for header macros
(SH) to have their contents on the subsequent line, this breaks
buggy software that erroneously expects headers to have their
content on the same line. This version, thanks to another excellent
pull request (#138), adds a hack for that specific condition.

Version 1.1.0, 2023-11-07

Accept GitHub and MDN-style admonitions. Admonitions are block-quotes
that begin with a bold phrase (e.g., note). The output rendering
is only for -thtml.

Accept GitHub-style superscripts and make them the default.
Previously, lowdown accepted only the traditional Markdown
superscripts; however, pandoc and other tools use GFM syntax by
default, so use this instead and make classical parsing into an
option --parse-super-short.

Add subscript support in the same way as superscript support.
Subscripts overlap with strike-throughs, which are enabled by
default. However, strike-throughs only appear for double-tildes.

Normalise the shared library to version 1, tied to the major number
of the package, and increment the minor number of the package
following the above API changes.

In -tterm mode, don't print metadata unless -s is specified, in
which case print the title, author, and date just like in the other
modes. Provide a --term-all-meta option to print all metadata like
before.

Make some small fixes to -tgemini regarding block quotes and block
code.

Lastly, significantly update lowdown(3) to document the AST generated
by the parser.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri May 26 20:38:47 2023 UTC (3 years, 5 months ago) by schmonz
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -3 lines
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.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Feb 23 08:20:29 2022 UTC (4 years, 8 months ago) by fcambus
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -1 lines
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.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Nov 5 11:06:24 2021 UTC (5 years ago) by fcambus
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -1 lines
lowdown: update to 0.10.0.

Version 0.10.0, 2021-10-08

Add "flat" OpenDocument output with -Tfodt. This implements the
OpenDocument v1.3 standard, and is readable at least on LibreOffice.
This further implements -Tfodt change tracking in lowdown-diff(1).
It does not support images or definition lists yet.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Feb 21 13:29:23 2021 UTC (5 years, 8 months ago) by fcambus
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -0 lines
lowdown: update to 0.8.2.

Version 0.8.2, 2021-02-19

Fix tables as processed by the difference engine. Tables are now
fully opaque, which means that any changes will result in the
deletion and re-addition of the table. This isn't a good fix, but
it does mean that any tables run through the difference engine will
be sane for output.

Fix metadata to also be properly handled by both the difference
engine and conforming front-ends. This is a bit unusual since
metadata is both processed during parse and also affects document
output, such as in document title. For now use the same rule that
front-ends with metadata differences affecting document layout
(e.g., title) use the new form, if changed.

Lastly, fix footnote reference. When they're emitted in the new
document, the reference definitions are re-ordered in the correct
way to allow -Tms and such to work properly. While here, make sure
that all printed footnote numbers start at one and colours are
properly represented in output.

Split lowdown(1) into lowdown-diff(1) for easier reading.

Properly render tables for -Tgemini as fixed-width displays.

By default, render Gemini link labels using "Excel" format
(hexavigesimal) with the option of using Roman numerals
(--gemini-link-roman) or without labels at all (--gemini-link-noref).
This choice of default may change in later versions, hwoever.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Feb 4 09:09:42 2021 UTC (5 years, 9 months ago) by fcambus
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -3 lines
lowdown: update to 0.8.0.

ChangeLog:

Version 0.8.0, 2021-01-31

Recognise the volume, source, and section metadata. These are currently
only used by -Tman.

Convert all internal functions to return an error code on memory allocation
failure. Prior to this, these functions had a chance of exiting and
printing failure to stderr. Now, this is left as the responsibility of
the front-end. There's no significant API change except that all renderers
return a value.

Fix the difference engine in several subtle ways, improving the produced
scripts, and also fix crashes where similar text would match multiple
parts of the parse tree, resulting in assertions.

Re-write the -Tms and -Tman generator to use a completely different
internal algorithm. This algorithm, instead of formatting directly into
output, converts the AST into an array of output blocks marked either as
text, literal, macro, or font/colour change. An assembler for this array
manages newlines and spacing between blocks. This fixes all known instances
of unexpected line breaks and allows for significantly simplified handling
of text interspersed with macros (e.g., links, etc.). An API result of
this is that the tree passed to lowdown_nroff_rndr(3) is now const.

Recognise non-block and block lists for -Tlatex output.

Emit a UTF-8 preconv header to all -Tms and -Tman so that -Kutf8 need not
be passed to the formatter.

Remove the --nroff-hardwrap option, which needlessly complicates code
without benefit.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Dec 10 09:19:35 2020 UTC (5 years, 11 months ago) by fcambus
Branches: MAIN
CVS tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -1 lines
lowdown: update to 0.7.5.

Version 0.7.5, 2020-12-09

- Add support for the Gemini protocol I've been hearing so much about.
  This may now be used from lowdown(1) or as a library in lowdown(3).
  This is a very simple output: it basically does no formatting at
  all, but does have some logic to shuffle around links.  Version

Version 0.7.4, 2020-08-29

- Bug-fix: don't emit stray .PP macros when in -Tman or -Tms mode.
This bug was introduced in version 0.7.3.

- The library is now usable from C++ applications as-is, without
  needing extra compilation flags.

- Add missing lowdown_diff(3) and lowdown_metaq_free(3) manpages.

Version 0.7.3, 2020-08-20

- Fix some smart typography bugs, specifically with ending single or
  double quotes. While doing so, create a regression suite for smart
  typography and update the manpage. Bug submitted by Larry Kollar,
  thanks!

- Make base header level metadata key work properly. Another bug
  submitted by Larry Kollar, thanks!

- Fix --nroff-hard-wrap to emit trailing newlines. Yet another bug
  submitted by Larry Kollar, thanks!

Larry further suggested using typographic conventions in both the
-Tlatex and -Tms output to have initial paragraphs not indent, but
subsequent ones should. This is the default mode in LaTeX, which
I was disabling. I've now removed my override to be more like
default LaTeX, and Larry proposed an initial patch for having -Tms
do the same. Thanks yet again!

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jul 9 19:38:02 2020 UTC (6 years, 4 months ago) by fcambus
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -1 lines
lowdown: update to 0.7.1.

Version 0.7.1, 2020-06-21

- For -Tms, make numbered output the default. This is because earlier,
  it was not possible to make numbered output at all with --nroff-groff.
  Also clarify the role of --no-groff while at it.

- Add --latex-no-numbered to -Tlatex for symmetry with -Tms.

- Initial support for extended image attributes as in PHP Markdown
  Extra. For the time being, these only allow for non-pixel widths
  and heights for images. Spend time in the documentation explaining
  image support, as it's a little complicated: LaTeX and HTML support
  any images, but ms only supports EPS and PS, and only in block
  mode. (Among other complexities...)

- Changes to internal API: the hdoc and hbuf structures have been
  renamed to struct lowdown_doc and struct lowdown_buf. First, I
  dislike typedefing away the fact that a variable is a structure
  very much. Second, the names were a holdover from the old system
  and shouldn't be part of the exported API.

- Add lowdown_buf_new(3) and lowdown_buf_free(3) to make the low-level
  library usable, where before it was pointing to private functions.

Version 0.7.0, 2020-06-04

- Simple support for LaTeX documents with -Tlatex. This will be
  expanded in future versions, but for now gets most documents having
  maths and graphics, too.

- Significantly improve metadata handling. Until now, metadata was
  handled inconsistently across output formats, and not always in
  line with the documented behaviour with respect to overriding. Now,
  all of the basic metadata keys are properly handled, RCS-specified
  keys properly override, and all of these is documented more rigorously
  in lowdown(1).

- Support base header level metadata on all outputs.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri May 22 19:32:02 2020 UTC (6 years, 5 months ago) by fcambus
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
lowdown: update to 0.6.5.

ChangeLog:

Version 0.6.5, 2020-05-20

- Fix an off-by-one where smarty-pants would be applied to some terms not
  on a word boundary. For example, 1/40 was erroneously construed as 1/4
  then a zero.

- Use pkg-config(1) for the installed library and improve the documentation.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Mar 7 22:17:01 2020 UTC (6 years, 8 months ago) by fcambus
Branches: MAIN
CVS tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -2 lines
lowdown: update to 0.6.1.

ChangeLog:

lowdown 0.6.1:

- Quick fix: we never actually... printed for the diff.

lowdown 0.6.0:

- Pull in newest oconfigure.
- Add common usage.
- Emit surrounding <p> for a list item if it's in a block and not already
  containing block element(s).
- Bring docs up to date with code.
- Allow blank-separated definition key/value pairs to trigger block mode.
- Record whether a paragraph ends with a blank line or not.
- Proper styling of line prefixes.
- Get proper spacing for definition lists with -Tterm.
- Paragraphs in definition values don't get two newlines.
- Don't needlessly break up paragraphs that have a dli prefix in them when
  within a list context.
- Show in alpha order.
- Document definition lists.
- Make line breaking around definition lists consistent.
- Merge multiple definition lists.
- Report definition list status.
- Complete parsing support for single-title description lists.  There's
  still work to be done, but this covers most uses.
- Recognise two newlines before a dli prefix as starting a block dli.
- Parse multiple definition list titles, don't parse zero-length trailing
  definition list data,  and properly form nroff definition lists w/multiple
  datas.
- Add definition lists to -Tterm, documentation to nroff, forgotten header
  change.
- Add nroff support for definition lists and clean up regular lists, too.
- Parse definition lists by default and add disabling documentation for them.
- Support for definition lists.
- const-ify and make sure formatters don't puke on definition lists.
- Add initial support for PHP Markdown Extra (and the many others inheriting
  this functionality) definition lists.  So far very simple and not enabled
  by default.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Oct 17 07:01:39 2018 UTC (8 years, 1 month ago) by maya
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -1 lines
lowdown: update to 0.4.1.  From Charlotte Koch.

Push diff implementation (from libdiff) directly into the code instead of using the external library. From a patch by Anton Lindqvist as suggested on the OpenBSD ports mailing lits. Thank you!

Significantly update the diffing algorithm. First, make some general fixes to the algorithm. Second, improve the "optimisations" phase by adding top-down analysis that matches un-matched, non-terminal adjacent children. This helps with text changes in text-only paragraphs. Third, add a SES (shortest edit script) computation for matched adjacent text nodes. Lastly, add the new diff function manpages.

Portability: don't use %F for date formatting. This doesn't work with some libc versions. Also some documentation readability improvements.

Strip leading white-space from metadata extracted using -X. Sync with newest oconfigure.

Document the metadata functionality in lowdown(5), thanks to Christina Sophonpanich (thanks!). Also sync with newest oconfigure.

Add a "diff" tool, lowdown-diff(1). This utility uses an algorithm adapted from Detecting Changes in XML Documents to compute the semantic difference between two parse trees. It is fully documented. While there, also add more inter-paragraph spacing to -Tms output, producing more elegant documents, and continue fleshing out lowdown(5). Also add some more metadata recognition in -s output for all modes (copyright, affiliation, etc.).

Re-wrote escape parser to -Tms and -Tman to respect roff special characters. Have e-mail autolinks respect the mailto: in pdfhref'd output, and have links with mailto: omit the schema in display just like in -Thtml. Make block-list-items render properly in -Tms and -Tman. Also introduce lowdown(5), a work-in-progress to document the Markdown formatting accepting by this system. The first were noted, and the last contributed in full, by Christina Sophonpanich — thanks!

Fixed compilation on Linux and Mac OS X by adding memrchr compatibility. Noted by Christina Sophonpanich — thanks!

Considerable clean-up of -Tms and -Tman, with the aim of much higher PDF output quality: proper nested list support, hyperlinks, PS/PDF TOC, and even some images (PS/EPS only—experimental!). Also, after some pointers on the groff mailing list, use the correct invocation for generating PDF output. Fix up footnote printing to use automatic -ms macros and registers, if applicable.

Also added support for the "affiliation" metadata keyword.

Added some CommonMark support, initially just escaped newlines, supported only when the commonmark input flag is specified. Removed the sphd input flag in favour of commonmark. Also fixed raw HTML block outputting and setext-style level-two headers.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 16 14:27:48 2017 UTC (9 years, 2 months ago) by ryoon
Branches: MAIN
CVS tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +15 -0 lines
Update to 0.2.4

* Add lowdown(3) library
* Bugfixes

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 15:05:02 2017 UTC (9 years, 8 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Import lowdown-0.1.9 as textproc/lowdown.

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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>