ponylang / hugo-documentation-site-theme

Hugo theme used for Pony Tutorial and Pony Patterns websites
BSD 2-Clause "Simplified" License
1 stars 4 forks source link

Text in Search Results not very well formatted #4

Open jkleiser opened 5 years ago

jkleiser commented 5 years ago

When I type a word like "future" in the search field at https://tutorial.ponylang.io, I get a short text on Actors where the first line ends with "behaviours. Behaviours A". This at first looks like a confusing typo, but the page I get by clicking at "Actors", reveals that the word "Behaviours" there is an h2 element. If I search for "issue", I get some other results where some html code is showing, like in the line starting with "You’ve been through the tutorial".

EpicEric commented 5 years ago

I've transferred this issue to the theme's repository.

EpicEric commented 5 years ago

The first part of this issue would require updating how summaries are generated. I don't have any suggestions for how it should be done -- maybe others can chime in.

The second part simply requires unescaping HTML, which I'm currently creating a PR for.