| At line 57 changed one line |
| if it's more prevalent. For instance, I've written several times I'd like to separate {{{##}}} and {{{{{{}}}, you did |
| if it's more prevalent. For instance, I've written several times I'd like to separate double-sharp and triple-brace, you did |
| At line 108 added 83 lines |
|
| Done. |
|
| -- [[YvesPiguet]], 2007-Apr-23 |
|
| Thanks for your comment on [[Talk.YaroslavStavnichiy|my page]]. I did not notice NME when first reading the site. Now I looked at it and I think it is great work. Perhaps you should mention on the [[Engines]] page that it is written in C. It is hard to find something other than PHP these days, so mentioning C should draw attention of interested people. |
|
| I run your test page through my parser and found some differences. I think the way NME renders the following fragment is not correct: |
| {{{ |
| * first item of an unordered list |
| # sharp invalid for unordered list, hence it is a plain character |
| ** first item of sublist |
| *# only the star matches the top-level list |
| ## monospace |
| }}} |
|
| Sharp in the second line should be treated as a beginning of a new numbered list. Consider different example: |
| {{{ |
| This is regular paragraph. |
| # sharp means nothing within paragraph, hence it is a plain character |
| }}} |
|
| NME would render it differently, and I think, correctly -- it will start a new list. |
|
| Creole does not require blank line before starting a new list, so it should not matter what was before it. And if one requires # in the beginning of the line he should escape it, no matter where it is: in a paragraph or within a list item. |
|
| I do not agree with the fourth line as well. Star matches top level of the list - that's right. Why doesn't # open a new numbered sublist? Consider the following example: |
| {{{ |
| * first item of an unordered list |
| *# only the star matches the top-level list |
| }}} |
|
| NME does render it differently, and I think, correctly. |
|
| By the way, while examining your test fragment I found a couple of bugs in my parser too :) Not fixed them yet. |
|
| -- YaroslavStavnichiy, 2007-12-17 |
|
| Thanks for your comments! |
|
| The problem with switching list kind without blank line is that there will always be ambiguities: |
| {{{ |
| *item a |
| *#item a.1 |
| **bold or item a.a? |
| }}} |
|
| I'd like an official clarification, whatever it is (provided it's sensible!), but I'm not sure it's worth changing NME now before a consensus is reached. |
|
| -- [[YvesPiguet]], 2007-12-18 |
|
|
| Hi Yves! Thanks for making NME, I'm finding it very useful. FYI I've written a Ruby wrapper extension for NME, so that it can be easily used from Ruby scripts. I've [[http://www.wikicreole.org/attach/Talk.YvesPiguet/nme-ruby.zip|attached it here]] as a patch for the NME-071015 distribution. To use (if you have ruby installed on your system): |
|
| {{{ |
| unzip NME-071015.zip |
| unzip nme-ruby.zip |
| cd NME-071015 |
| patch -p1 < ../nme-ruby.diff |
| make nmeruby |
| }}} |
|
| It should build the extension for whatever your platform is. |
|
| -- [[MattMcKeon]], 2008-05-09 |
|
| Great work, Matt! If you're interested, can you contact me by [[http://nyctergatis.com/contact.html|email]] to discuss how to release it? Thanks! |
|
| -- [[YvesPiguet]], 2008-05-12 |
|
| Hi Yves, |
|
| I would like to Hack Nyctergatis Markup Engine to reduce some markups like "~[[" to "~[", "~<<" to "<", etc. |
| What's the best way to do it? I could hack it but don't know what's the best way. |
|
| Thanks, |
| srw |
|
| Please only append to this discussion page so that one can easily follows questions and ansers. |
|
| Edit NME.c and modify function parseNextToken to not require double characters. |
|
| -- [[YvesPiguet]], 2008-08-24 |