Documentation
¶
Overview ¶
Package prbody turns a pull request body (GitHub Markdown, which mixes in HTML) into short wrapped lines for the terminal: formatting becomes plain text, links keep only their text, images and comments go, and each <details> section collapses to its summary.
The lines are not safe to print as they are: the body is untrusted, so the caller still strips control characters.
Index ¶
Constants ¶
View Source
const MaxBody = 64 << 10
MaxBody is the most of a body Render reads (GitHub's own limit is 65536 characters). goldmark is slow on some hostile input (~2s at this size), so callers should render off the UI thread.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.