hpanot

hpanot: get your annotations in Markdown from Hypothes.is (https://hypothes.is)
git clone git://git.alex.balgavy.eu/hpanot.git
Log | Files | Refs | README | LICENSE

commit cc68bdc89647a9b7fabe9929a71f9fae7acb66ef
parent 719128aa677468efbb684e8e8e0546f87d4a038a
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Tue, 21 Jun 2022 10:44:35 +0200

Replace typographic quotes

Diffstat:
Mhpanot | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hpanot b/hpanot @@ -17,7 +17,7 @@ class Hypothesis end def to_markdown - str = @text.split("\n").reduce('') { |acc, line| acc + "> #{line}\n" } + str = @text.split("\n").reduce('') { |acc, line| acc + "> #{line.gsub(/[‘’]/, %q{'}).gsub(/[“”]/, %q{"})}\n" } str += "\n" str += "#{@comment}\n" if @comment str