Skip to content

Releases: ForLegalAI/legaldown-render

v0.3.0 - legaldown-validator 0.4.0

Choose a tag to compare

@dvejsada dvejsada released this 03 Oct 10:16
ce84b69

Requires legaldown-validator 0.4 (>=0.4.0,<0.5); pip install -U legaldown-render brings it in. Renders LegalDown (specification 0.2, Rendering level) to HTML and plain text.

  • Uses only the validator's public API (legaldown, legaldown.syntax, legaldown.grammar), so validator_bridge.py is gone
  • Rendered output is unchanged, except that a quote nested past the validator's depth (17+ levels of quotes and list items combined) holding only an HTML comment no longer renders an empty paragraph
  • Answers files: a UTF-8 BOM is now accepted, and a pathologically nested YAML file gives a clean error (both from validator 0.4.0's load_answers)
  • Known limitations: see CONFORMANCE.md (link reference definitions, ForLegalAI/legaldown-validator#92)

Full change: #3, release: #4

v0.2.0 - Update on new validator

Choose a tag to compare

@dvejsada dvejsada released this 30 Sep 13:20
79cd33e

First release on PyPI: pip install legaldown-render. It renders LegalDown (specification 0.2, Rendering level) to HTML and plain text.

  • Built on legaldown-validator 0.3.0: nested lists ("2.1(b)(i)"), block quotes and list items that hold other blocks, table alignment, hard line breaks, and section numbers from the validator
  • Templates with answers: --answers answers.yaml / render(..., answers=...)
  • Validator findings show their line numbers in the CLI
  • Known limitations: see CONFORMANCE.md (link reference definitions, ForLegalAI/legaldown-validator#92)

Full change: #2