Skip to content

Commit

Permalink
Update lib/react-markdown.js
Browse files Browse the repository at this point in the history
Signed-off-by: Titus <tituswormer@gmail.com>
  • Loading branch information
wooorm authored Dec 15, 2022
1 parent bd4d3b5 commit 64a6630
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/react-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ const deprecated = {
* @param {ReactMarkdownOptions} options
* @returns {ReactElement}
*/
export function ReactMarkdown(_options) {
const options = { ..._options, transformLinkUri: _options?.transformLinkUri || uriTransformer };
export function ReactMarkdown(options) {
for (const key in deprecated) {
if (own.call(deprecated, key) && own.call(options, key)) {
const deprecation = deprecated[key]
Expand Down

0 comments on commit 64a6630

Please sign in to comment.