requarks / wiki

Wiki.js | A modern and powerful wiki app built on Node.js
https://js.wiki
GNU Affero General Public License v3.0
24.25k stars 2.68k forks source link

Search does not match text located within code block #481

Closed sensiblemedia closed 6 years ago

sensiblemedia commented 6 years ago

Actual behavior

A search does not appear to match against text within a code block

Expected behavior

Would expect search function to match against text located within code block

Steps to reproduce the behavior

Create page with a code block and search for a word located within code block.

sensiblemedia commented 6 years ago

Apologies but I just found similar previous post here #453

NGPixel commented 6 years ago

This is as designed. Most users wouldn't expect code to trigger unwanted results during search.

Post a feature request to have the option in v2.