MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / onVisitLine

Function onVisitLine

frontend/contentlayer.config.js:91–95  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

89 {
90 theme: "github-dark",
91 onVisitLine(node) {
92 if (node.children.length === 0) {
93 node.children = [{ type: "text", value: " " }]
94 }
95 },
96 onVisitHighlightedLine(node) {
97 node.properties.className.push("line--highlighted")
98 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected