Expand description
Miscellaneous utilities to increase comfort. Special thanks to:
-
https://github.com/BenjaminRi/Redwood-Wiki/blob/master/src/markdown_utils.rs. Its author authorized the use of this GPL code in this project in https://github.com/raphlinus/pulldown-cmark/issues/507.
-
https://gist.github.com/rambip/a507c312ed61c99c24b2a54f98325721. Its author proposed the solution in https://github.com/raphlinus/pulldown-cmark/issues/708.
Structs§
- Text
Merge Stream - Merge consecutive
Event::Textevents into only one. - Text
Merge With Offset - Merge consecutive
Event::Textevents into only one, with offsets.
Functions§
- decode_
html_ entities - Decode HTML5 character references (
>,&,<,{, …) inside a string. Unrecognised&fooruns are left as-is.