Changeset View
Changeset View
Standalone View
Standalone View
native/markdown/rules.react.js
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | spoiler: { | ||||
}; | }; | ||||
}, | }, | ||||
// eslint-disable-next-line react/display-name | // eslint-disable-next-line react/display-name | ||||
react: ( | react: ( | ||||
node: SharedMarkdown.SingleASTNode, | node: SharedMarkdown.SingleASTNode, | ||||
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>, | output: SharedMarkdown.Output<SharedMarkdown.ReactElement>, | ||||
state: SharedMarkdown.State, | state: SharedMarkdown.State, | ||||
) => ( | ) => ( | ||||
<MarkdownSpoiler key={state.key} text={output(node.content, state)} /> | <MarkdownSpoiler | ||||
key={state.key} | |||||
spoilerIdentifier={state.key} | |||||
text={output(node.content, state)} | |||||
/> | |||||
), | ), | ||||
}, | }, | ||||
inlineCode: { | inlineCode: { | ||||
...SimpleMarkdown.defaultRules.inlineCode, | ...SimpleMarkdown.defaultRules.inlineCode, | ||||
// eslint-disable-next-line react/display-name | // eslint-disable-next-line react/display-name | ||||
react: ( | react: ( | ||||
node: SharedMarkdown.SingleASTNode, | node: SharedMarkdown.SingleASTNode, | ||||
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>, | output: SharedMarkdown.Output<SharedMarkdown.ReactElement>, | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |