diff options
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 - |