Skip to content

Search result highlighting breaks markdown rendering #612

@lukasrad02

Description

@lukasrad02

#557 added highlighting of the search term in search results. This could break the rendering of search results if the term occurs in identifiers (e.g. internal links) instead of normal text.

Steps to reproduce

  • Create two information pages. Let x, y be their IDs
  • On the first page, create an internal link to the second page like [Second page](page:y) and publish this change
  • Search for the numeric value of ID y
  • There is an internal server error, since y has been replaced by **y**, which cannot be casted to an int

Metadata

Metadata

Labels

[T] bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions