Commit graph

12 commits

Author SHA1 Message Date
fcambus
9702e42cc0 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.
2020-07-09 19:38:02 +00:00
fcambus
ba3bdeae99 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.
2020-05-22 19:32:02 +00:00
fcambus
ffcae3839c lowdown: update to 0.6.4.
pkgsrc changes:

- Fix LICENSE marker, lowdown is ISC licensed
- Enable test suite
- Remove forgotten checksum for patch-Makefile in distinfo

ChangeLog:

Version 0.6.4, 2020-03-29

- Enable and enforce portability by also running regression tests over
  all operating systems and architectures. Updates oconfigure.
2020-03-31 09:39:12 +00:00
nia
c629fcbe52 lowdown: Update to 0.6.2
"Lots of small portability tweaks to the build system. This involves the newest oconfigure."
2020-03-24 17:46:28 +00:00
joerg
21239c4e2e Fix shell portability 2020-03-18 18:01:35 +00:00
fcambus
3da568454c 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.
2020-03-07 22:17:01 +00:00
fcambus
fe75da3126 lowdown: update to 0.4.6.
ChangeLog:

lowdown 0.4.6:

- Make sure stdint is everywhere.

lowdown 0.4.5:

- Use BSD.lv's mandoc.css.
- Use BSD.lv's style and clean up.
- Newest sblg.
- Add stdint.

lowdown 0.4.4:

- Use Makefile.configure's macros.
- Bring up to speed w/other bsd.lv sites.
- Newest oconfigure.
- Document list-start for commonmark.
- All outputs process start list item for commonmark.
- Capture list start iff commonmark.

lowdown 0.4.3:

- Add atom version feed.
- Use new oconfigure.
- Bound reading into the value buffer.

lowdown 0.4.2:

- Document maths.
- Remove MATHEXP ("mathexp") facility.
- Disable MATHEXP mode. This offers nothing, but ends up complicating
  the user experience. Stick with only one "math mode" and document it
  properly.
- Have math blocks reported in -Ttree and accumulate the content in a
  text node.
- Begin incorporating better math mode.
- Fix pdfhref links in lists.
- In nroff mode, stretch table to fit width and embolden header.
- Add table documentation.
- Typo found by Anton Lindqvist.
2019-12-12 20:00:08 +00:00
maya
c8fb20369e 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.
2018-10-17 07:01:39 +00:00
wiedi
f13b8cdbeb lowdown: fix build on SunOS
Stop the package from overwriting CC, CFLAGS or LDFLAGS
2017-09-24 10:03:51 +00:00
ryoon
892feae3d0 Update to 0.2.4
* Add lowdown(3) library
* Bugfixes
2017-09-16 14:27:48 +00:00
jlam
a4b6742236 textproc/lowdown: Install manpages into ${PKGMANDIR}.
Use mk/subst.mk to replace the MANDIR definition in the configure
script to point into ${PKGMANDIR}.
2017-08-19 00:22:23 +00:00
wiz
c27d27402c 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.
2017-03-08 15:05:02 +00:00