gather-cli icon indicating copy to clipboard operation
gather-cli copied to clipboard

Double quotes in titles aren't properly escaped in frontmatter

Open vladiliescu opened this issue 1 year ago • 0 comments

I'm using the git version of gather-cli, built from source, invoked with these parameters: $GATHER_BIN $1 --file %title.md --inline-links --metadata-yaml --include-title --include-comments --fallback-title 'webclip %date' --no-include-source

The url in question is https://www.niemanlab.org/2018/02/last-blog-standing-last-guy-dancing-how-jason-kottke-is-thinking-about-kottke-org-at-20/

The issue is that the frontmatter is not output correctly, which is only apparent when opening it in Obsidian :). What happens is that the title is correctly surrounded by double quotes, but the double quotes already inside the title are not escaped.

---
title: "Last blog standing, "last guy dancing": How Jason Kottke is thinking about kottke.org at 20 | Nieman Journalism Lab"
source: https://www.niemanlab.org/2018/02/last-blog-standing-last-guy-dancing-how-jason-kottke-is-thinking-about-kottke-org-at-20/
date: 2024-05-04 13:49
---

vladiliescu avatar May 04 '24 10:05 vladiliescu