mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 08:39:29 +08:00
19 lines
472 B
Text
19 lines
472 B
Text
/**
|
|
* @typedef {import('mdast').Paragraph} Paragraph
|
|
* @typedef {import('../types.js').Handle} Handle
|
|
*/
|
|
|
|
import {containerPhrasing} from '../util/container-phrasing.js'
|
|
|
|
/**
|
|
* @type {Handle}
|
|
* @param {Paragraph} node
|
|
*/
|
|
export function paragraph(node, _, context, safeOptions) {
|
|
const exit = context.enter('paragraph')
|
|
const subexit = context.enter('phrasing')
|
|
const value = containerPhrasing(node, context, safeOptions)
|
|
subexit()
|
|
exit()
|
|
return value
|
|
}
|