Files
coopgo/node_modules/mdast-util-to-hast/lib/handlers/list.js
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

18 lines
331 B
JavaScript

'use strict'
module.exports = list
var wrap = require('../wrap')
var all = require('../all')
function list(h, node) {
var props = {}
var name = node.ordered ? 'ol' : 'ul'
if (typeof node.start === 'number' && node.start !== 1) {
props.start = node.start
}
return h(node, name, props, wrap(all(h, node), true))
}