-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Assignees
@a-chumagin
Description
Summary
When adding a fenced code block in the Documentation tab (entityV2 editor), an extra blank line is appended after the closing backticks. This appears to stem from the code block conversion rule plus missing trailing trim in entityV2’s htmlToMarkdown.
Affected component
datahub-web-react→entityV2Documentation editor- File:
datahub-web-react/src/app/entityV2/shared/tabs/Documentation/components/editor/extensions/htmlToMarkdown.tsx
Steps to reproduce
- Open any entity’s Documentation tab (new/entityV2 editor).
- Insert a code block via the UI "this is code"
- Save.
- Observe: rendered Markdown shows an extra blank line after the code block.
Expected behavior
- The Markdown ends at the closing fence, consistent with unit test expectations (no trailing blank line after the closing ```).
Actual behavior
- There is always an extra blank line after the closing ``` when the description ends with a code block (or contains only a code block).