alphapapa / org-protocol-capture-html

Capture HTML from the browser selection into Emacs as org-mode content
453 stars 39 forks source link

Fix pandoc "--no-wrap" option detection #52

Open YorkZ opened 1 year ago

YorkZ commented 1 year ago

The option --no-wrap has removed in pandoc v2.19.2, and therefore the output of running pandoc --no-wrap is not --no-wrap is deprecated, but --no-wrap has been removed. This fix detects both error messages to determine whether the option should be --no-wrap or --wrap=none.

alphapapa commented 1 year ago

Hi York,

Thanks. Would you mind using rx syntax there, to avoid the backslashes? Then this can be merged.

YorkZ commented 1 year ago

Hi @alphapapa,

Yes, rx is fantastic, and I've changed the PR to use rx. Thanks for reminding.

YorkZ commented 1 year ago

Thanks @alphapapa for pointing out, and the good suggestion.