Skip to content

Commit

Permalink
Add transformer for h3 node
Browse files Browse the repository at this point in the history
  • Loading branch information
adgad authored and chee committed Jan 28, 2025
1 parent 7b7c94f commit 77292bb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/from-bodyxml/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ export let defaultTransformers = {
level: "subheading",
}
},
/**
* @type {Transformer<ContentTree.transit.Heading>}
*/
h3(h3) {
return {
type: "heading",
level: "subheading",
}
},
/**
* @type {Transformer<ContentTree.transit.Heading>}
*/
Expand Down

0 comments on commit 77292bb

Please sign in to comment.