This issue is similar to #19137
That issue fix complex code block parsing in oxlint jsdoc plugin, but oxfmt's new jsdocs plugin also has similar issues:
Before:
/**
* `` ```js /Hello|Hi/ ``
*
* Meta word highlight
*
* 元词汇高亮
*
* @param parser - Code parser instance / 代码解析器实例
* @param meta - Meta string / 元字符串
*/
With jsdoc: true (oxfmt without it works fine), the formatted code becomes:
/**
* ````js /Hello|Hi/`
*
* Meta word highlight
*
* 元词汇高亮
*
* @param parser - Code parser instance / 代码解析器实例
* @param meta - Meta string / 元字符串
*/
This breaks the original jsdoc
This issue is similar to #19137
That issue fix complex code block parsing in oxlint jsdoc plugin, but oxfmt's new jsdocs plugin also has similar issues:
Before:
With
jsdoc: true(oxfmt without it works fine), the formatted code becomes:This breaks the original jsdoc