<div><div>Hi again, everyone -</div><div><br></div><div>This is a long one, so sorry about that. I'm having a few problems with basic wiki syntax, all loosely related to slightly more advanced use. Thoughts, opinions, corrections, etc. are all welcome.</div>
<div><br></div><div><br></div><div>First: end-of-line and blank lines.</div><div><br></div><div>The wiki parser appears to insert multiple meaningless <span> and <p> elements into the HTML output -- they have ids like "line-1" and "line867". This leads to ugly HTML for what should be a very simple page, and I think it comes from how blank lines are handled. I would suggest that at the very least, these should not have ids -- certainly, it would not be advisable to try to style them since they are not user-generated, so I think the ids just clutter the output.</div>
<div><br></div><div>Also on this topic, some things do not work as expected -- the syntax instructions state that a definition list with multiple definitions for a single term should be constructed like this:</div><div><br>
</div><div> Term::</div><div> :: definition 1</div><div> :: definition 2</div><div> :: definition 3</div><div><br></div><div>And this pretends to produce the desired output, but in fact the three <dd> elements are not associated with the correct <dt> element at all -- each <dd> is handled as a separate definition for a term with a blank <dt>. Semantically, this is bad... and it could also lead to CSS problems.</div>
<div><br></div><div><br></div><div>Second: nesting wiki syntax.</div><div><br></div><div>It appears that many types of wiki syntax don't nest. For example, consider the following:</div></div><div><br></div><div>=== [[userpage|User's Name]] ===</div>
<div><br></div><div> * [[userpage|User's Name]]</div><div> * blah blah</div><div><div><br></div><div> [[userpage|User's Name]]::</div><div> :: blah blah</div><div><br></div><div>Only the middle of these three works as expected -- the other two don't parse the link. It also doesn't work to nest a definition list within an unordered list, or vice-versa:</div>
<div><br></div><div> * Term 1::</div><div> :: definition</div><div> * Term 2:: definition</div><div><br></div><div> Term 1::</div><div> :: * Item 1</div><div> * Item 2</div><div> * Item 3</div><div> Term 3::</div>
<div> :: definition</div><div><br></div><div>I realize that these may be slightly tricky to parse correctly, but they are trivial to construct with HTML. Which brings me to my next point...</div><div><br></div><div><br>
</div><div>Third: delimiters for wiki syntax</div><div><br></div><div>Is there a way to manually delimit the beginning and end of a wiki element? For example,</div><div><br></div><div> * { Term 1::</div><div> :: definition 1</div>
<div> :: definition 2</div><div><div> :: definition 3 }</div><div> * item 2</div><div><br></div><div>This way, everything between the curly brackets would be shoved inside the first <li> element of the <ul>. I think the structural clarity this would bring is well worth the trade-off of bracket-clutter.</div>
<div><br></div><div><br></div><div>Thanks!</div><div><br></div><div>Best, Chris MacMinn</div></div></div>