medfreeman / remark-generic-extensions

!Extension[Content](Argument){Properties} -> :tada: — commonmark generic directive extension for remark
Apache License 2.0
25 stars 5 forks source link

undefined ::content:: results in string "undefined" #45

Open dustingetz opened 6 years ago

dustingetz commented 6 years ago
!anchor[](admin-account-masterlist)

image

(def remarkInstance (-> (js/remark)
                        (.use js/remarkGenericExtensions
                              (clj->js
                                {"elements"
                                 {"anchor" {"html" {"properties" {"label" "::content::" "ident" "::argument::"}}}
                                  }}))
                        (.use js/remarkGridTables)
                        (.use js/remarkReact
                              (clj->js
                                {"sanitize" false
                                 "remarkReactComponents" (->> whitelist-reagent (util/map-values reagent/reactify-component))}))))
dustingetz commented 6 years ago

BTW, this extension is awesome. I'll take a look at fixing this when I have a moment.