Skip to content

🐞 Unable to create markers that link to files with comma in file name #464

@jack-thomas

Description

@jack-thomas

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

Using the sample code block in the "Reproduction" section, I expected a marker that links to "Empire State Building, The" and is labeled "Label".

Current behaviour

Using the sample code block in the "Reproduction" section creates a marker that links to "Empire State Building" and is labeled "The]]". See the screenshot below.

Screenshot

Reproduction

id: issue-sample
height: 500px
width: 100%
lat: 40.748441
long: -73.985664
minZoom: 4
maxZoom: 18
defaultZoom: 12
unit: miles
scale: 1
marker: default, 40.748441, -73.985664, [[Empire State Building, The]], Label
darkMode: true
noUI: true

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.8.10

Plugin Version

6.0.5

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

I am not at all confident, but I think it might have something to do with src/renderer/renderer.ts#L755. It doesn't look like it's expecting anything to be escaped or quoted.

const { data } = parseCSV<string>(marker);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions