diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | src/bashly.yml | 8 | ||||
| -rw-r--r-- | src/lib/chapter_reader.sh | 2 |
3 files changed, 6 insertions, 6 deletions
@@ -48,7 +48,7 @@ Complete Nectar *builds* can be located in the *[Releases](https://github.com/Fu - [Gum](https://github.com/charmbracelet/gum/) - [pup](https://github.com/ericchiang/pup) -- [Pandoc](https://pandoc.org/) +- [html2md](https://github.com/suntong/html2md) - [Glow](https://github.com/charmbracelet/glow) ### Help 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 - |