Giter VIP home page Giter VIP logo

cryogen-markdown-external's People

Contributors

greywolve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cryogen-markdown-external's Issues

Duplicates posts and pages

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.