summaryrefslogtreecommitdiff
path: root/rdr
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-05-19 14:16:19 -0700
committerBen Sima <ben@bsima.me>2019-05-19 14:16:19 -0700
commit95a3cb30f61e90fe00cd859f10e323bbc3e62e99 (patch)
tree6d44b9b5eb04f9279acd31bbaffc95d9d524ae21 /rdr
parent517bd3c33f7b34173348141b7128b54e2776a30f (diff)
cleanup textract and rdr
Diffstat (limited to 'rdr')
-rwxr-xr-xrdr5
1 files changed, 3 insertions, 2 deletions
diff --git a/rdr b/rdr
index a258698..184d7d4 100755
--- a/rdr
+++ b/rdr
@@ -2,5 +2,6 @@
#! nix-shell -i bash -p pandoc
textract "$1" \
- | pandoc -f html -t markdown \
- | less
+ | pandoc -f html -t markdown --strip-comments --reference-links \
+ | sed 's/^:::.*$//g' \
+ | sed 's/{.css.*}//g'