Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/package-manual/PackageManual.lean
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ set_option verso.exampleProject "examples/documented-package"
-- `(module := ...)` argument to most elements that show code.
set_option verso.exampleModule "Zippers"

open Verso.Code.External

#doc (Manual) "Zippers: A Documentation Example" =>
%%%
authors := ["David Thrane Christiansen"]
Expand Down
5 changes: 5 additions & 0 deletions src/verso-manual/VersoManual.lean
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ block_extension Block.paragraph where
some <| fun _ go _ _ content => do
pure <| {{<div class="paragraph">{{← content.mapM go}}</div>}}

/--
Indicates that all the block-level elements contained within the directive are a single logical
paragraph. In HTML output, they are rendered with less space between them, and LaTeX renders them as
a single paragraph (e.g. without extraneous indentation).
-/
@[directive_expander paragraph]
def paragraph : DirectiveExpander
| #[], stxs => do
Expand Down
Loading