Reproduction
- Import the file templates/medium-concise-summary-clipper.json from https://github.com/obsidian-community/web-clipper-templates/blob/main/templates/medium-concise-summary-clipper.json via Settings → Import Templates.
- The importer fails with the following console error:
settings.js:1 Error parsing imported template: SyntaxError: Expected ',' or '}' after property value in JSON at position 1228 (line 51 column 37)
...
Import failed: Error: Error importing template. Please check the file and try again.
Observed cause
The JSON string for the tags selector contains unescaped double quotes which break JSON parsing. Example of the broken value in the file:
"value": "{{selector:a[href^="/tag/"] > div|replace:("":"-")}}",
Proposed fix
Replace the problematic line with properly escaped inner quotes, for example:
"value": "{{selector:a[href^=\"/tag/\"] > div|replace:(\"\":\"-\")}}",
(or as you suggested)
"value": "{{selector:a[href^=\"/tag/\"] > div|replace:(\"\":\"-\")}}",
Notes
- After applying the fix, validate the JSON (e.g. with a JSON linter or node's JSON.parse) and re-import in Obsidian Web Clipper settings.
- The issue is a blocking import failure — users cannot import this template until fixed.
Request
Please update templates/medium-concise-summary-clipper.json to escape inner quotes in the selector string so the file is valid JSON and imports successfully.
Reproduction
Observed cause
The JSON string for the tags selector contains unescaped double quotes which break JSON parsing. Example of the broken value in the file:
Proposed fix
Replace the problematic line with properly escaped inner quotes, for example:
(or as you suggested)
Notes
Request
Please update templates/medium-concise-summary-clipper.json to escape inner quotes in the selector string so the file is valid JSON and imports successfully.