From 0654074d86c300290fa210bf7126ff8e15d90a68 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 5 Jun 2023 17:40:53 -0700 Subject: deps(pandoc): replace with html2md --- src/bashly.yml | 8 ++++---- src/lib/chapter_reader.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/bashly.yml b/src/bashly.yml index e695418..fac812a 100644 --- a/src/bashly.yml +++ b/src/bashly.yml @@ -1,12 +1,12 @@ name: nectar help: Command-line Honeyfeed Reader -version: 0.1.1 +version: 0.1.2 commands: - name: chapter alias: c help: Read a chapter directly in your terminal - dependencies: [gum, curl, pup, pandoc, echo, glow] + dependencies: [gum, curl, pup, html2md, echo, glow] args: - name: id @@ -16,7 +16,7 @@ commands: - name: novel alias: n help: Select a chapter to read directly in your terminal - dependencies: [gum, curl, pup, pandoc, echo, glow] + dependencies: [gum, curl, pup, html2md, echo, glow] args: - name: id @@ -26,7 +26,7 @@ commands: - name: search alias: s help: Search and select a novel to read directly in your terminal - dependencies: [gum, curl, pup, pandoc, echo, glow] + dependencies: [gum, curl, pup, html2md, echo, glow] args: - name: title diff --git a/src/lib/chapter_reader.sh b/src/lib/chapter_reader.sh index 396a1db..99e2b1d 100644 --- a/src/lib/chapter_reader.sh +++ b/src/lib/chapter_reader.sh @@ -6,7 +6,7 @@ chapter_reader() { # Convert chapter HTML to GitHub Flavoured Markdown (closest to Honeyfeed) markdown="$(echo "${chapter_content}" | pup 'div.wrap-body.div' | - pandoc -f html -t gfm)" + html2md -i)" # Display stylised chapter in default pager (usually less) echo "${markdown}" | glow -w "$(tput cols)" -p - -- cgit v1.2.3