Skip to content

Commit

Permalink
fix(core): remove superfluous newlines from table column descriptions (
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed May 3, 2024
1 parent 44bfbf0 commit 8503932
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 46 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-lemons-hammer.md
@@ -0,0 +1,5 @@
---
"typedoc-plugin-markdown": patch
---

- Remove superfluous newlines from table column descriptions.
Expand Up @@ -4,5 +4,6 @@ export function formatTableColumn(str: string) {
.replace(/\n(?=(?:[^`]*`[^`]*`)*[^`]*$)/gi, '<br />')
.replace(/\`\`\`ts/g, '`')
.replace(/\`\`\`/g, '`')
.replace(/\n/g, '');
.replace(/\n/g, '')
.replace(/(<br \/>\s*)+$/g, '');
}
Expand Up @@ -34,6 +34,7 @@ export class ClassWithSimpleProps {
propB = 'propBValue';
/**
* Comments for propB
* on two lines
*
* @defaultValue 'propCDefaultValue'
*/
Expand Down

0 comments on commit 8503932

Please sign in to comment.