aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-06-05 17:40:53 -0700
committerFuwn <[email protected]>2023-06-05 17:40:53 -0700
commit0654074d86c300290fa210bf7126ff8e15d90a68 (patch)
treee2b0157db3eb1d8572595629c9efb47b59957a2f /src
parentdocs(readme): dependency notice (diff)
downloadnectar-0654074d86c300290fa210bf7126ff8e15d90a68.tar.xz
nectar-0654074d86c300290fa210bf7126ff8e15d90a68.zip
deps(pandoc): replace with html2mdHEADv0.1.2main
Diffstat (limited to 'src')
-rw-r--r--src/bashly.yml8
-rw-r--r--src/lib/chapter_reader.sh2
2 files changed, 5 insertions, 5 deletions
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 -