[](https://www.npmjs.com/package/@handbook/remark-split-html-lines) [](https://github.com/rocket-hangar/ha
npm install @handbook/remark-split-html-lines@handbook/remark-split-html-lines


``ts
import unified from 'unified';
export const processor = unified()
.use(require('remark-parse'))
.use(require('@handbook/remark-split-html-lines'))
.use(require('@handbook/remark-magic-comments'))
.use(require('remark-stringify'), {
listItemIndent: 1,
});
`
When you have an AST tree like below.
`json`
[
{
"type": "html",
"value": "\nDetail
\n\n"
}
]
It converted to like below.
`json`
[
{
"type": "html",
"value": ""
},
{
"type": "html",
"value": "Detail
"
},
{
"type": "html",
"value": ""
},
{
"type": "html",
"value": ""
}
]
- @handbook/ This package is one of @handbook/` packages. Go to the project home and see more details.
-
-
-
-