Skip to content

Commit

Permalink
Merge pull request #247 from Witiko/feature/map-unicode-nbsp-to-nbsp-…
Browse files Browse the repository at this point in the history
…renderer

Map non-breaking space to `writer->nbsp` and U+0000 to U+FFFD in strings
  • Loading branch information
Witiko authored Jan 9, 2023
2 parents 8634db6 + 59ea9c6 commit 31d90e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Documentation:
- Update examples for options `bracketedSpans` and `fencedDivs`.
(499c65a, 532cdb8)

Fixes:

- Map U+0000 to U+FFFD in strings. (lostenderman#34, #247)
- Map non-breaking space to `writer->nbsp` in strings. (lostenderman#99, #247)

Default Renderer Prototypes:

- Use `paralist` LaTeX package to define default renderer prototypes for
Expand All @@ -20,7 +25,8 @@ Default Renderer Prototypes:

Unit Tests:

- Do not fold tabs and spaces into a single space token. (#242)
- Do not fold tabs and spaces into a single space token.
(lostenderman#107, #242)

Speed Improvements:

Expand Down
2 changes: 2 additions & 0 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -20861,6 +20861,8 @@ function M.writer.new(options)
["^"] = "\\markdownRendererCircumflex{}",
["~"] = "\\markdownRendererTilde{}",
["|"] = "\\markdownRendererPipe{}",
[entities.hex_entity('0000')] = entities.hex_entity('FFFD'),
[entities.hex_entity('00A0')] = self.nbsp,
}
% \end{macrocode}
% \par
Expand Down

0 comments on commit 31d90e6

Please sign in to comment.