Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed May 1, 2023
1 parent 9dd3a53 commit caf3168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/html/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export const Html: FC<Html> = (props) => {
const { attribs, children } = domNode
if (domNode.name === 'a') return replaceLink()
if (domNode.name === 'markdown-directive') return replaceDirective()
if (domNode.name === 'code') return replaceCode()
if (domNode.name === 'img') return replaceImage()

function replaceCode() {
function replaceImage() {
const element = Children.only(domToReact([domNode], {
...options,
replace(node) {
Expand Down

1 comment on commit caf3168

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on caf3168 May 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
wonderwiki ❌ Failed View Logs 2023-05-01T13:40:01.090Z

Please sign in to comment.