diff options
| author | Fuwn <[email protected]> | 2023-06-05 17:40:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-06-05 17:40:53 -0700 |
| commit | 0654074d86c300290fa210bf7126ff8e15d90a68 (patch) | |
| tree | e2b0157db3eb1d8572595629c9efb47b59957a2f /src | |
| parent | docs(readme): dependency notice (diff) | |
| download | nectar-main.tar.xz nectar-main.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/bashly.yml | 8 | ||||
| -rw-r--r-- | src/lib/chapter_reader.sh | 2 |
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 - |