Repository navigation
Description
Summary
The Elixir reference renders the LibTmux.Server.with_owned/2 example as two paragraphs. The first contains the alias. The second joins the callback, its two statements and end) on one line.
Reproduction
- Open the hosted reference for
with_owned/2and find the example under Description. - Compare it with the same example in HexDocs.
Expected
One syntax-highlighted Elixir block preserves the blank line after the alias and the indentation inside the callback.
Actual
The hosted HTML wraps each paragraph in <p>. HexDocs highlights the example inside a <pre> element. The hosted Markdown export also retains the original line breaks.
References
The source docstring uses an indented Markdown block. The Elixir adapter recognizes an indented block when it starts with an IEx prompt. This one starts with alias. The Elixir source issue tracks adding a language tag to this example.
Verification on the subordinate PR
The reference adapter rendered the original published source and the newly fenced source as one highlighted block in separate checks. The fixture preserves the blank line and callback indentation. The adapter fixes existing indented docstrings and can land independently of the Elixir source change. Adapter tests · Source example
Ports that own their reference sites build with the renderer selected by their caller. The Elixir caller needs a docs revision containing this adapter before it can render previously published indented source with the correction. The companion Elixir source fence already works with its current publisher. Elixir publisher update · Current production provenance
Released API model
The original shared preview lacked the member. The 0.1.3 release data in #368 supplies the page, but its cached model still rendered the callback as prose. #375 now regenerates it from that same release and checks the entire example against the pinned source. The Linux preview rendered six source lines with the blank line, callback indentation and syntax colors intact. The port’s production workflow adopts the shared change through libtmux/libtmux-elixir#204. Regenerated model · Regression
Activity