Skip to content

v3.0 Podlite markup language specification

Latest

Choose a tag to compare

@zag zag released this 27 Nov 08:20
· 1 commit to main since this release
94be5ca
bigtitle-social-release-3 0

Podlite is a lightweight block-based markup language designed for flexibility and ease of use.

Podlite 3.0

Specification: https://podlite.org/specification
Release announcement: https://podlite.org/2026/11/27/1/podlite-3-0-released

The specification now carries its own tests. They appear alongside the rules they check, and Podlite documents can use the same test syntax to check their own content. An ordinary paragraph directly inside a test included by the specification is part of the specification text. If a test of the specification disagrees with the rule it checks, the rule governs.

podlite-core-whats-new-3 0@2x

Added

  • Test blocks: a =test contains one or more =assert blocks with selector assertions and may include =fixture and =resource blocks
  • Tests for block syntax, configuration, selectors, includes and data blocks, kept in files under t/; the specification ends with a list of the tests
  • Selector predicates test the configuration in effect for a block, including values from =config and =set: operators, empty and absent values, membership, combined conditions
  • The universal pattern *, operations in parentheses and the in operator
  • Internal addresses: the three parts of reading an address, address boundaries in selectors and links, and data: column lookup by heading
  • A =pod block nested in another is a group

Changed

  • Attribute values: the configuration table lists the kinds of value and the keys each hash form accepts; values in parentheses or braces can continue on configuration lines
  • Blocks and tests brought in by =include belong to the including document; on the first included block, a =set in the included file overrides a =set for the same key made before the include
  • Includes without a source all select from the same document state, after includes from other sources have resolved
  • An included =toc applies its selector to the including document
  • Selectors do not reach =include or =boundary
  • Block reading: the first line determines whether an implicit block is a paragraph or code; in abbreviated and paragraph forms of =item and =defn, indentation does not start a code block; when a block ends, the virtual margin of the enclosing block applies again
  • A :mime-type written on =data-table overrides the format of its data: source
  • Markup codes: closing angles match the nearest open delimiter first; the reserved codes Q<> and Y<> keep their letter and delimiters when rendered and produce a warning
  • Relative paths in selector sources, images and links resolve from the file where the reference appears

Changes that affect existing documents

  • =config also applies to matching blocks brought in by a later =include in its scope
  • Markup codes in a string value are read only if =set assigns it
  • =include carries directives inside the selected blocks; a =boundary outside every included block stays behind
  • =boundary accepts only :caption of the standard options and is not affected by =config boundary
  • In a simple table, |, + and whitespace enclosed by a markup code whose delimiters are on one line stay in the cell
  • On a simple-table line that uses whitespace separators, two or more consecutive whitespace characters form one column separator of any width; an empty cell is written with visible separators or with =row and =cell
  • CSV and TSV: spaces in a field and indentation beyond the virtual margin are data; an empty line outside a quoted CSV field is a row with one empty field
  • For CSV and TSV, header now defaults to present, so the first row names the columns; use header=absent to keep the first row as data; other values are errors
  • A blank line counts as inline content in =data-table and causes an error if :src is set
  • =picture takes its source only from :src, and its whole content is the caption: a source written on the first line of the content now reads as caption text

Links

What's Changed

  • Correct conflicting value forms in the block configuration table by @zag in #30
  • Add rules for reading attribute values by @zag in #31
  • Use square brackets in :columns examples by @zag in #32
  • Rework attribute value rules and forms by @zag in #33
  • Complete the attribute value rules by @zag in #34
  • Fix two dead links and state three rules the text applies by @zag in #35
  • Selector predicates by @zag in #36
  • Test blocks by @zag in #40
  • Operations in parentheses by @zag in #41
  • Reading CSV and TSV by @zag in #43
  • Podlite Specification v3.0 by @zag in #44

Full Changelog: v2.0.1...v3.0