(token)
| 1 | function childrenText(token) { |
| 2 | let text = "" |
| 3 | for (let i = 0; i < token.children.length; i++) { |
| 4 | let child = token.children[i]; |
| 5 | if (child.type == "text" || child.type == "code_inlin") text += child.content |
| 6 | } |
| 7 | return text |
| 8 | } |
| 9 | |
| 10 | import {createHash} from "crypto" |
| 11 |