Skip to content

not able to search in the code blocks #1190

Description

@unoukujou

Unable to search within code blocks.

For example, save this into a LeafWiki page:

# Example Test Page with a code block.

```bash
# Fetch IP and store it in a variable
MY_IP=$(curl -sL api.ipify.org)

# Get extra details in json format
curl -sL "ipapi.co/${MY_IP}/json/"
```

Now search for "curl" or "Fetch"... you will not find this page.

I think it's important for LeafWiki to search all the text in the raw markdown and not ignore any certain parts.

Especially for somebody like me who have a lot of comments in my code blocks that need to be searchable.

Also to search certain commands that I have in code blocks. Like curl in this example.

My notes are heavy in code blocks. So it is essential to search them.

Version

0.10.2

Platform

Desktop Web

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions