Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Feb 25, 2024
1 parent 9d0d991 commit 82241ff
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions mds.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,9 @@ export function default_create_node(data, type, parent) {
/** @type {Default_Renderer_Update_Node} */
export function default_update_node(data, node, text) {
switch (text) {
case "":
break
case "\n":
node.slot.appendChild(document.createElement("br"))
break
default:
node.slot.appendChild(document.createTextNode(text))
case "" : break
case "\n": node.slot.appendChild(document.createElement("br")); break
default : node.slot.appendChild(document.createTextNode(text))
}
}

Expand Down

0 comments on commit 82241ff

Please sign in to comment.