Skip to content

Commit

Permalink
doc: show example input and output hiccup
Browse files Browse the repository at this point in the history
Copied Roam HTML to http://html2hiccup.buttercloud.com/,
then did a search and replace in Vim with `:%s/\\n\\s\+`
  • Loading branch information
tangjeff0 committed May 1, 2020
1 parent f254516 commit 2fd1a23
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions data/nested-link.hiccup
@@ -0,0 +1,21 @@
;; a Roam block with the following text should produce the hiccup that follows

;; INPUT
;; {{[[TODO]]}} work on [[Deep Transclusions]] and [[Nested [[Links]]]]

;; OUTPUT
[:span
[:span [:label.check-container [:input {:type "checkbox"}] [:span.checkmark]]]
" work on "
[:span.rm-page-ref-brackets "[["]
[:span.rm-page-ref.rm-page-ref-link-color "Deep Transclusions"]
[:span.rm-page-ref-brackets "]]"]
" and "
[:span.rm-page-ref-brackets "[["]
[:span.rm-page-ref.rm-page-ref-link-color
[:span
"Nested "
[:span.rm-page-ref-brackets "[["]
[:span.rm-page-ref.rm-page-ref-link-color "Links"]
[:span.rm-page-ref-brackets "]]"]]]
[:span.rm-page-ref-brackets "]]"]]

0 comments on commit 2fd1a23

Please sign in to comment.