greywolve / cryogen-markdown-external Goto Github PK
View Code? Open in Web Editor NEWA Clojure library to provide Markdown rendering to the cryogen-core compiler by using an external command/program, such as pandoc.
License: MIT License
A Clojure library to provide Markdown rendering to the cryogen-core compiler by using an external command/program, such as pandoc.
License: MIT License
This repo hasn't seen any attention in 4 years so I expect this issue to not to be resolved. I spent awhile figuring it out though so I need the closure of at least making the issue.
Included this dependency in an attempt to get some custom styling on footnotes in my cryogen posts.
With the cryogen-core
version 0.3.1
it causes posts to be duplicated.
compiling pages
--> /pages-output/2020-01-31-test-page
--> /pages-output/2019-11-22-resume
--> /pages-output/2020-01-31-test-page
--> /pages-output/2019-11-22-resume
compiling posts
--> /posts-output/2020-01-26-expo-shadow-cljs-starter
--> /posts-output/2020-01-26-expo-shadow-cljs-starter
--> /posts-output/2019-07-21-hello-world
--> /posts-output/2019-07-21-hello-world
I've tracked it down to the markup-registry
having too many values of a markdown processor when this dependency is included.
cryogen-core.compiler> @cryogen-core.markup/markup-registry
[#object[cryogen_markdown_external.core$markdown_external$reify__30860 0x36c04c8b "cryogen_markdown_external.core$markdown_external$reify__30860@36c04c8b"]
#object[cryogen_flexmark.core$markdown$reify__30876 0x44b03454 "cryogen_flexmark.core$markdown$reify__30876@44b03454"]]
The multiple values causes the read-posts/pages
fn to process all posts/pages twice.
(defn read-posts
"Returns a sequence of maps representing the data from markdown files of posts.
Sorts the sequence by post date."
[config]
(->> (m/markups)
(mapcat
(fn [mu]
(->>
(find-posts config mu)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.