We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0be04 commit 07a46d3Copy full SHA for 07a46d3
src/config.ts
@@ -45,6 +45,7 @@ export interface DOMConfig {
45
FORBID_ATTR?: string[]
46
FORBID_TAGS?: string[]
47
FORCE_BODY?: boolean
48
+ IN_PLACE?: boolean
49
KEEP_CONTENT?: boolean
50
RETURN_DOM?: boolean
51
RETURN_DOM_FRAGMENT?: boolean
src/index.ts
@@ -3,7 +3,7 @@ import * as dom from './dom'
3
import { override } from './override'
4
import { render } from './react'
5
6
-export function parse(html: string, userOptions?: Config): React.ReactNode[] {
+export function parse(html: string, userOptions?: Config): React.ReactNode[] | React.ReactFragment {
7
if (typeof html !== 'string') {
8
throw new TypeError('First argument must be a string.')
9
}
0 commit comments