Open jaidetree opened 5 years ago
I noticed this too. Reading the code, I can't tell what the purpose of :original
is--no code uses it, it's not documented in SPEC.md, and it's not clear why the blog example uses it instead of the default filterer.
It looks like commit 189403355d91dc8954c0f3fcff04b3ec8d63e0e4 introduced :original
:
--- a/src/io/perun/markdown.clj
+++ b/src/io/perun/markdown.clj
@@ -30,7 +30,9 @@
(defn parse-file-defn [lines]
- (let [metadata {}]
+ ; we use `original` file flag to distinguish between generated files
+ ; (e.x. created those by plugins)
+ (let [metadata {:original true}]
:include-atom
and :include-rss
were added. It might just be that the blog example was not updated at the same time to reflect the new intent.
REPRODUCTION
examples/blog
boot build
EXPECTED
:original
keyword as a filtererACTUAL
More Context
:original
, without that option it works as expected.:original true
as a meta option along with:include-rss
andinclude-atom
.May have to do with this line https://github.com/hashobject/perun/blob/master/src/io/perun.clj#L257 which could be removing the
:original
attribute from the map.