Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: pod: format pod document in general and after symbol lookup
For all general cases, the `formatPodDoc` function is now used to perform various actions on a processed pod document. At the moment, this only removes `=head1 NAME` paragraphs from the document, as those are kind of unnecessary in hover docs. After a successful symbol lookup, the returned pod document is formatted in the following ways: - `=item` paragraphs of the same indentation level are converted to header paragraphs, which makes the matched symbol appear more nicely. - `=head\d` paragraphs are now "normalized" -- this means that if e.g. a subroutine signature starts at `=head4`, it will be converted to a `=head1` internally, which is then adapted as needed by the markdown converter. The above results in the docs of all looked up symbols being uniformly rendered as `h3` (`###`), with sub-headings being converted to the respective relative level. Signed-off-by: Max R. Carrara <[email protected]>
- Loading branch information