(create-enml-document content)
Creates an ENML document by adding XML headers and wrapping with a <en-note> tag. Original content must already be valid ENML
Creates an ENML document by adding XML headers and wrapping with a <en-note> tag. Original content must already be valid ENML
(en-media->simple-img-fn resource-map)
An alternate translation for <en-media> that will produce <img> tags if the type of media starts with 'image/' . This function actually produces the function that should be passed to enml-> html, given a resource-map argument. This would be a map of hash-to-URL. It thus requires knowledge of all the resource hashes contained within the ENML ahead of time, and this would typically be gathered by examining the resources of the original Note, possibly using clojurenote.notes/resource->bean-with-body-hash-hex
An alternate translation for <en-media> that will produce <img> tags if the type of media starts with 'image/' . This function actually produces the function that should be passed to enml-> html, given a resource-map argument. This would be a map of hash-to-URL. It thus requires knowledge of all the resource hashes contained within the ENML ahead of time, and this would typically be gathered by examining the resources of the original Note, possibly using clojurenote.notes/resource->bean-with-body-hash-hex
(en-note->html-document node)
An alternate translation for <en-note> that will create a complete HTML document.
An alternate translation for <en-note> that will create a complete HTML document.
(enml->html enml & optional-en-tag-fns)
Translates an ENML document to HTML by removing headers and translating <en-*> tags. Default translation is simplist possible, but won't (for example) map <en-media> tags to <img> tags. Specify optional en-tag-fns argument in order to customize the tag translation behavior. See documentation on default-en-tag-fns for more detail.
Translates an ENML document to HTML by removing headers and translating <en-*> tags. Default translation is simplist possible, but won't (for example) map <en-media> tags to <img> tags. Specify optional en-tag-fns argument in order to customize the tag translation behavior. See documentation on default-en-tag-fns for more detail.
(note->html {content :content :as note} & more)
Same as enml->html (including the same optional argument), but takes a Note instead of ENML document. Note can be the original Java object returned by the Evernote API, or can be the 'beaned' version of the same object.
Same as enml->html (including the same optional argument), but takes a Note instead of ENML document. Note can be the original Java object returned by the Evernote API, or can be the 'beaned' version of the same object.
(plain-span text)
(remove-headers enml)
(replace-tags tag-fns node)
(walk-fn user-supplied-tag-fns)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close