Skip to content
Snippets Groups Projects

style: don't assume HTML structure of rendered markdown in searchResultMatch

Merged Administrator requested to merge fa/code-block-detection into master

Created by: attfarhan

Avoid relying on the structure of the response of our markdown renderer when rendering code blocks. Instead, we just want the text of any result wrapped in a code block, so we can pass it to the syntax highlighter.

Should mean that we avoid issues where syntax highlighting does not occur because we fail to detect a code block, such as https://github.com/sourcegraph/sourcegraph/issues/2325.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading