Not sure it's a bug or not in search function.

Bug Reports
  • #1

    we're using markdown, and we just simply store markdown content into db.

    It's correct, but the redundant character or words will disturb searching.

    I just posted a new one to test category without any words about javascript, but there's a snippet decorated within ````javascript```` then I can get this topic when submit javascript
    1.png

    More interesting is when you submit smile

    the page is full of 😄

  • #2

    I'm guessing this is a feature? If you view the html source of that post, do you see the string "JavaScript" in it anywhere? I'm guessing the source code parser adds additional tags to the source code, and as you said you are storing the post as markdown so it's still included. I'm sure this could be prevented with a regular expression included in the search source code.

  • #3

    @Joel-Murphy
    yes, you're right, the source code contains javascript in order to make highlighter render snippet correctly.

    And I just add a filter to convert markdown to HTML, then use jquery.text() to get the plan text.

    And index the plan text into search finally.


Suggested Topics


  • 0 Votes
    1 Posts
    1691 Views

  • UI bug on Profile

    Bug Reports
    0 Votes
    5 Posts
    1424 Views

  • Can't hyperlink to API pages.

    Bug Reports
    1 Votes
    1 Posts
    1003 Views

  • 0 Votes
    5 Posts
    1536 Views

  • A few bugs

    Bug Reports
    0 Votes
    3 Posts
    1470 Views

| | | |