Skip to content

HighLight line with "[]" make error #32

@Tback1

Description

@Tback1
  • The Plugin is up to date
  • Obsidian is up to date

To Reproduce

javascript showLineNumbers {hl_lines=[22,23,24]} {26,27,28,32-34} {[35,36,37]}

javascript showLineNumbers {hl_lines=[22,23,24,25]} {26,27,28,32-34} {[35,36,37,38]}

Screenshots
image

Occurs on

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Plugin version
0.44

Additional context

The array formed by '[]' is incorrectly recognized as linenumber, and this problem is found because of the previous Hugo extension of the plug-in form {hl_lines=[22,23,24]}, when I manually corrected it, I found that the middle 23 lines can still be highlighted, after experimentsIn fact, it is found that the whole array is removed from the head and tail, and the line markers in the middle can be used.For example, {[35,36,37,38]} would remove 35 and 38 instead of 36 and 37

Is this a bug with lax validation in array form?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions