-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single newlines in @param blocks are interpreted as linebreaks in generated markdown #615
Comments
I experience a related issue with And something is wrong about abbreviated text for index table. |
Thank you. Fixed in [email protected]. @cywang90 you are absolutely correct a soft line should not result in a line break. @KillyMXI Your issue with the superfluous should also be fixed. Please do a raise a separate issue regarding index tables. Handling how to process comments inside the table is actually a bit complex. We basically cannot have any markdown blocks rendered in the table, so the solution to this bug is to first normalize line breaks and then parse markdown block tags to html. Previouslly we were just converting new lines to |
@tgreyuk Thanks for the quick fix. Just re-built my docs using v4.0.2 and can confirm my issue was fixed. |
What package is the bug related to?
docusaurus-plugin-typedoc
Describe the issue
Single newline characters in @param blocks are preserved in the generated markdown files and are even converted to
<br/>
tags whenparametersFormat: 'table'
is used.For example, take the following documentation:
It gets translated into the following markdown:
This is unexpected but somewhat okay since single newlines are still treated as spaces in markdown.
However, when formatting parameters into a table, the following markdown is generated:
Now there is an undesired forced linebreak where the single newline character used to be.
TypeDoc configuration
typedoc: v0.25.13
typedoc-plugin-markdown: v4.0.1
docusaurus-plugin-typedoc: v1.0.1
Options (passed to docusaurus-plugin-typedoc):
Expected behavior
Single newlines in @param blocks should be interpreted as a space instead of a linebreak. They should never be converted to
<br />
tags in markdown and probably should always be converted to a space instead of being preserved as a newline character.The text was updated successfully, but these errors were encountered: