diff options
Diffstat (limited to 'enhancers.txt')
-rw-r--r-- | enhancers.txt | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/enhancers.txt b/enhancers.txt index d70a5f8..842bf5b 100644 --- a/enhancers.txt +++ b/enhancers.txt @@ -1,6 +1,21 @@ --boundary X-Thing: Pattern +inode/directory +--boundary +X-Thing: Head + +--boundary +X-Thing: Tail + +<script> +(function() { + // todo: input to create new page, upload button +})(); +</script> +--boundary +X-Thing: Pattern + text/markdown --boundary X-Thing: Head @@ -22,21 +37,17 @@ X-Thing: Tail var tip = document.createElement('aside'); tip.innerHTML = '<p>Tip: To set the page title (what appears in the tab '+ - 'name/window bar), put this at the top of the page:</p>\n'+ + 'name/window bar), but not have it appear as a header on the page, put '+ + 'this at the top:</p>\n'+ '<pre>---\ntitle: "Your Title Here"\n---\n</pre>\n'+ - '<p>(I apologize that it looks funny on this page and in the '+ - 'preview.)</p>\n'+ - - '<p>Otherwise, the first line will be used as the title. This means '+ - 'that if you want the title to also appear at the top of the document, '+ - 'you can instead use:<p>\n'+ - '<pre>Your Title Here\n===============\n</pre>\n'+ - '<p>which will also include it as a heading at the top of the page.</p>'; + '<p>To set the page title, and have it appear as a header on the page, '+ + 'put this at the top:<p>\n'+ + '<pre>Your Title Here\n===============\n</pre>\n'; container.appendChild(tip); - // bug workaround from https://github.com/codemirror/CodeMirror/issues/2143#issuecomment-140100969 + // workaround from https://github.com/codemirror/CodeMirror/issues/2143#issuecomment-140100969 var updateSectionHeaderStyles = function(cm, change) { var lines = cm.lineCount(); for (var i = Math.max(0, change.from.line-1); i <= Math.min(change.to.line+1, lines-1); i++) { |