You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preserve the result and guide links after the final reference example #396
area:examplesPublished examples, quickstarts and the code readers copy.bugSomething isn't workingdocumentationImprovements or additions to documentationp2Useful follow-up that can proceed independently of the core milestone.topic:apiPublic API reference, symbol links and discoverability.topic:examplesWorked examples, sample applications, and user guides.
The shared Markdown parser drops the paragraph after the last code block in an Examples section. On the released Elixir LibTmux.Server page, that paragraph gives the expected pane IDs and links to the capture and owned-server guides. Released source
Reproduction
Pass this docstring to parseElixirDoc and inspect doc.examples. The same result occurs with a following ## Related heading.
An example.
## Examples
Read a line.
```elixirIO.gets(:stdio, "")
```
Expected output and a [guide](first-task.html).
The model contains the Elixir code and the introduction “Read a line.” The final sentence and its link disappear. With two examples, the parser attaches all intervening prose to the second introduction, including the first example’s result.
Expected
The HTML reference and Markdown export should keep the text and links after each example in their authored order, including when the section ends at a heading or the end of the docstring. The existing example outro field can carry trailing prose to both renderers. Model · HTML renderer · Markdown export
Evidence
The fenced reproduction also loses its trailing paragraph on the parent of the indented-example fix. The shared parser has buffered lines for the next block since September 5. It clears that buffer at a heading and returns at end of input. Cover both boundaries and an intervening paragraph with a link. Parser history · Indented examples
area:examplesPublished examples, quickstarts and the code readers copy.bugSomething isn't workingdocumentationImprovements or additions to documentationp2Useful follow-up that can proceed independently of the core milestone.topic:apiPublic API reference, symbol links and discoverability.topic:examplesWorked examples, sample applications, and user guides.
Activity