Skip to content

Missing end-of-file line feed duplicates paragraph #4

@gorango

Description

@gorango

Changing line 147 in test/index.js to "minify" the incoming html with the following line:

var file = vfile(fs.readFileSync(input, 'utf8').replace(/\n*^\s*/gm, ''))

This particular change results in 14 failures (I recognize that a proper minification might avoid a few of these failures).

I wonder if this issue should be better addressed in the rehype-parse package?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions