Ira Hopkinson
Ira Hopkinson
Well what about when we do expect something but its not given. In JS a number can be `undefined` or `NaN` and an object can be `undefined` so the last...
Ok. I understand and can work with that. Updating the documentation to make that clearer and throwing better exceptions for unexpected values lets the developer know what to do.
Work-around: I just used a `~-~` as a divider and that was retained, however although that gives the space it doesn't show as a divider.
Adding the 5 spaces after the `*` and before the `---` does allow it to be retained, however it still doesn't show as a JSDoc divider. Please re-open this issue.
I'm also having this problem on Lexical v0.16.1. Here is a CodeSandbox to test the issue: https://codesandbox.io/p/sandbox/direction-ys4dd8
@etrepum thanks for that good clarification of the issue. I was thinking of making a PR for item 1 today but 3 would also work to create a `getTopLevelNode` method....
@etrepum thanks for the quick fix!