Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsdz committed Dec 4, 2024
1 parent 9874ec5 commit 354e23f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
33 changes: 20 additions & 13 deletions man/lowdown-diff.1
Original file line number Diff line number Diff line change
Expand Up @@ -853,21 +853,28 @@ accept optional arguments.
The
.Li initial
value is one of the following:
.Bl -bullet
.It
a canonicalised metadata key
.It
.Li this
.Pq value of a current loop context
.It
.Li body
.Pq parsed input document body
.It
.Li meta(val)
to force accepting
.Bl -tag -width Ds
.It Li and(expression[,expression]*)
A non-empty list containing the value
.Li true
if all expressions evaluate to non-empty lists, otherwise an empty list.
An empty expression evaluates to an empty list.
.It canonicalised metadata key
The value for the given metadata key, if found, otherwise an empty list.
.It Li body
The parsed input document body.
.It Li meta(val)
Evaluate
.Li val
as a metadata key, even if it's a special variable like
.Li body
.Li body .
.It Li or(expression[,expression]*)
A non-empty list containing the value
.Li true
if one expression evaluates to non-empty lists, otherwise an empty list.
An empty expression evaluates to an empty list.
.It Li this
The value of a current loop context or an empty list.
.El
.Pp
If a metadata key is not specified in the input, or if the anaphoric
Expand Down
1 change: 1 addition & 0 deletions man/lowdown.1
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ A non-empty list containing the value
if all expressions evaluate to non-empty lists, otherwise an empty list.
An empty expression evaluates to an empty list.
.It canonicalised metadata key
The value for the given metadata key, if found, otherwise an empty list.
.It Li body
The parsed input document body.
.It Li meta(val)
Expand Down

0 comments on commit 354e23f

Please sign in to comment.