Skip to content

What is replacing soft line breaks with ensp? #15

@bwklein

Description

@bwklein

In the tree output from the toHast function there is a string like

lineBreak\u000bThis line contains a shift-enter soft line-break here\u000bThis bit is after the line break.

This string contains the "U+000B Line Tabulation" control character.

This is replaced by   in the HTML code, after running it through the following code:

let html = unified()
  .use(rehypeStringify, { collapseEmptyAttributes: true })
  .stringify(tree);

Do you know how I can preserve this control character or replace it with the HTML hex reference ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions