Compare commits

..

No commits in common. "d2d10c68fb291eb4ecbf31dabd4529f08433990f" and "22a73a07e8eb9f9598ae6a8e7403987538fec88c" have entirely different histories.

2 changed files with 3 additions and 18 deletions

View File

@ -193,7 +193,7 @@ var Outline = {
&& (data.collapsed ?
node.setAttribute('collapsed', '')
: node.removeAttribute('collapsed'))
if(data.text != null){
if(data.text){
var text = node.querySelector('textarea')
var html = node.querySelector('span')
if(this.__code2html__){
@ -352,13 +352,10 @@ var Outline = {
.replace(/\s*(?<!\\)\[[Xx]\]\s*/gm,
style('check', '<input type="checkbox" checked>'))
// basic styling...
// XXX revise...
.replace(/(?<!\\)\*(?=[^\s*])(([^*]|\\\*)*[^\s*])(?<!\\)\*/gm, '<b>$1</b>')
.replace(/(?<!\\)~(?=[^\s~])(([^~]|\\~)*[^\s~])(?<!\\)~/gm, '<s>$1</s>')
.replace(/(?<!\\)_(?=[^\s_])(([^_]|\\_)*[^\s_])(?<!\\)_/gm, '<i>$1</i>')
.replace(/(?<!\\)`(?=[^\s])(([^`]|\\`)*[^\s])(?<!\\)`/gm, '<code>$1</code>')
// XXX support "\==" in mark...
.replace(/(?<!\\)==(?=[^\s])(.*[^\s])(?<!\\)==/gm, '<mark>$1</mark>')
.replace(/(?<!\\)`(?=[^\s_])(([^`]|\\`)*[^\s_])(?<!\\)`/gm, '<code>$1</code>')
// characters...
// XXX use ligatures for these???
.replace(/(?<!\\)---(?!-)/gm, '&mdash;')

View File

@ -74,23 +74,12 @@ var setup = function(){
- multiple node selection
- copy/paste nodes/trees
- undo
collapsed:: true
- delete node
- indent/deindent
- edit node
- markdown: tables
collapsed:: true
- /^\s*(\|\s+.*\s+\|)\s*$/m -&gt; &lt;table&gt;&lt;tr&gt;&lt;td&gt;$1&lt;/td&gt;&lt;/tr&gt;&lt;table&gt;
- /\n\s*\|\s+/ -&gt; &lt;tr&gt;&lt;td&gt;
- /\s+\|\s*\n/ -&gt; &lt;/td&gt;&lt;/tr&gt;
- /\s+\|\s+/ -&gt; &lt;/td&gt;&lt;td&gt;
- ASAP: fix quotes
- Example: /\n\s*\|\s+/ -&gt; &lt;tr&gt;&lt;td&gt;
- empty item height is a bit off...
- ~handle links gracefully -- open/edit
_just click in the empty space_~
- ~<a href="about:blank">this takes the whole element</a>~
- this breaks if link is exactly line width -- should we ensure empty space?
- handle links gracefully
- ~serialize/deserialize~
- ~add optional text styling to nodes~
-
@ -121,7 +110,6 @@ var setup = function(){
- ---
- Markers: ASAP, BUG, FIX, HACK, STUB, WARNING, and CAUTION
- Basic inline *bold*, _italic_ and ~striked~
- Marking ==text==
- Inline [X] checkboxes [_]
- To do items/blocks
- [_] undone item