diff options
author | Amitai Schlair <schmonz-web-ikiwiki@schmonz.com> | 2016-02-20 02:59:49 -0500 |
---|---|---|
committer | Amitai Schlair <schmonz-web-ikiwiki@schmonz.com> | 2016-02-20 02:59:49 -0500 |
commit | 7c847499b7922983453455b6d00faf8f472f3e91 (patch) | |
tree | 80f8811ea456c3f5ae2ce5c726e3fc0ee70d3791 /doc | |
parent | adc861bd88c3eef8f4651c4874cfacc98df9f881 (diff) | |
download | ikiwiki-7c847499b7922983453455b6d00faf8f472f3e91.tar ikiwiki-7c847499b7922983453455b6d00faf8f472f3e91.tar.gz |
Document pretty decent Remark.js integration.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/plugins/contrib/remark.mdwn | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/plugins/contrib/remark.mdwn b/doc/plugins/contrib/remark.mdwn new file mode 100644 index 000000000..f35740153 --- /dev/null +++ b/doc/plugins/contrib/remark.mdwn @@ -0,0 +1,31 @@ +[[!template id=plugin name=remark author="[[schmonz]]"]] +[[!template id=gitbranch branch=schmonz/remark author="[[schmonz]]"]] +[[!tag type/format]] + +[Remark.js](http://remarkjs.com) makes web slides from Markdown. This +plugin integrates Remark into ikiwiki. Simply write `your_slides.remark` +instead of `your_blog_post.mdwn`, separating slides with `---`. + +To set shared styles across all presentations on your site, put them in +a top-level `remarklocal.css`. To set per-presentation styles, use the +[[localstyle]] plugin as usual. + +## Problem: `inline` + +Web slides are sort of a regular web page, but not exactly: no action +links, and almost none of the other accoutrements of `page.tmpl`. The +branch's current behavior is that Remark slides are naively inlined like +any other page, which -- because the Markdown is deliberately not being +rendered by ikiwiki -- results in the slide source being displayed (and +not elegantly). Clicking through to the slides works right, of course. + +Should [[inline]] (and more generally [[ikiwiki/PageSpec]]) understand +that web slides are not exactly regular pages? And/or should this plugin +detect when slides are being inlined and allow ikiwiki to process the +Markdown as a sort of "preview"? + +## Concern: safety of web-editing + +Even though `remarkpage.tmpl` has no action links, is it still possible +for someone to trick their way into web-editing a slide deck? And if +they do, is that dangerous? |