xwmx / nb

CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
https://xwmx.github.io/nb
GNU Affero General Public License v3.0
6.43k stars 181 forks source link

check _use_pandoc before applying sed replacement. #213

Closed slowsage closed 1 year ago

slowsage commented 1 year ago

Follow-up to #209. Related comment

Note: I'm not too familiar with ace and other contexts which nb browse supports. I tested with w3m and firefox with and without pandoc.

slowsage commented 1 year ago

Tests are failing. I'm not sure if the tests need to be updated and how. A little lost here. Lmk if I can help.

xwmx commented 1 year ago

@slowsage I experimented a bit and ended up with a slightly different approach that preserves the color highlighting. Thanks!