mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-16 08:15:55 +02:00
refactor: unify error handling behavior (#6755)
* refactor: unify error handling behavior * revert * normalize paths * test... * change * does this work... * fix... * maybe fix * maybe fix * fix * fix...
This commit is contained in:
parent
dcbf9f644e
commit
f903422617
58 changed files with 1123 additions and 299 deletions
|
@ -11,7 +11,7 @@ import type {Parent} from 'unist';
|
|||
import type {PhrasingContent, Heading} from 'mdast';
|
||||
|
||||
export function stringifyContent(node: Parent): string {
|
||||
return ((node.children || []) as PhrasingContent[]).map(toValue).join('');
|
||||
return (node.children as PhrasingContent[]).map(toValue).join('');
|
||||
}
|
||||
|
||||
export function toValue(node: PhrasingContent | Heading): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue