Markdown Sugar
Posted: 03 November 2008 04:00 PM
[ Ignore ]
[ # 1 ]
Jr. Member
Total Posts: 43
Joined 2008-10-29
Nah, never mind, I solved it. I may share the sugar soon.
Signature
Markdown.sugar – The super-awesome Markdown for Espresso.
Posted: 03 November 2008 05:23 PM
[ Ignore ]
[ # 2 ]
Administrator
Total Posts: 106
Joined 2008-10-27
For future reference, in these cases it’s actually easiest to use the Syntax Tool mentioned on the wiki: http://wiki.macrabbit.com/index/Syntaxes/ . The next preview will lose the plists to prevent any further confusion
Posted: 04 November 2008 10:58 AM
[ Ignore ]
[ # 3 ]
Jr. Member
Total Posts: 43
Joined 2008-10-29
Okay, thanks!
Here’s a litte screenshot of a sugared .markdown file: link
Signature
Markdown.sugar – The super-awesome Markdown for Espresso.
Posted: 05 November 2008 12:57 AM
[ Ignore ]
[ # 4 ]
Sr. Member
Total Posts: 232
Joined 2008-11-05
David - 03 November 2008 03:37 PM
Hi there!
Still not working:
<!-- BLOCKQUOTE --> < zone name = "comment.block.sql" > < expression >( [ > ]{1 , 1} ).*$( [\n]{2} )?</ expression > </ zone >
If you see, why a multi line blockquote doesn’t work, please let me know.
> some multiline text
Only the first line gets colored.
Regexen are only applied by lines, all surrounding lines are ignored in all situations. You’ll have to hack something up with a begin and end clause where the end clause is something *without* a blockquote marking … or something. I don’t really know how you’re going to get around that one.
Signature
Ruby.sugar | Rails.sugar ? | Haml.sugar | SASS.sugar | Sugar Manager.sugar | Git.sugar | Regex.sugar | ERb.sugar | RSpec.sugar
http://elliottcable.name /contact.xhtml
Posted: 05 November 2008 12:21 PM
[ Ignore ]
[ # 5 ]
Jr. Member
Total Posts: 43
Joined 2008-10-29
Okay, I finally know how to do multiple line highlighting. Here’s a beta version of the sugar, still containing a few bugs: download
The version 0.8 supports:
· HTML Header
· Bold and Italic
· Lists
· Blockquotes
· Code elements
· Pre tags for code
Signature
Markdown.sugar – The super-awesome Markdown for Espresso.
Posted: 05 November 2008 04:59 PM
[ Ignore ]
[ # 6 ]
Sr. Member
Total Posts: 232
Joined 2008-11-05
David - 05 November 2008 12:21 PM
Okay, I finally know how to do multiple line highlighting. Here’s a beta version of the sugar, still containing a few bugs: download
The version 0.8 supports:
· HTML Header
· Bold and Italic
· Lists
· Blockquotes
· Code elements
· Pre tags for code
Could you perhaps throw a version up on GitHub? I’d like to contribute as well, there’s more syntaxes worth having, for sure!
Good work so far, this is a very useful sugar to have.
Signature
Ruby.sugar | Rails.sugar ? | Haml.sugar | SASS.sugar | Sugar Manager.sugar | Git.sugar | Regex.sugar | ERb.sugar | RSpec.sugar
http://elliottcable.name /contact.xhtml
Posted: 12 November 2008 04:10 PM
[ Ignore ]
[ # 8 ]
Jr. Member
Total Posts: 43
Joined 2008-10-29
Thanks for doing that!
Signature
Markdown.sugar – The super-awesome Markdown for Espresso.
Posted: 17 November 2008 09:51 AM
[ Ignore ]
[ # 9 ]
Jr. Member
Total Posts: 43
Joined 2008-10-29
Updated to version 0.9.1 with new features. See first post.
Signature
Markdown.sugar – The super-awesome Markdown for Espresso.
Posted: 17 November 2008 10:26 PM
[ Ignore ]
[ # 10 ]
Newbie
Total Posts: 2
Joined 2008-11-11
looks like zip file download is not working… ‘page does not exist’
Posted: 18 November 2008 08:20 AM
[ Ignore ]
[ # 12 ]
Jr. Member
Total Posts: 43
Joined 2008-10-29
now that’s strange… I corrected the link.
Signature
Markdown.sugar – The super-awesome Markdown for Espresso.
Posted: 28 February 2009 11:17 AM
[ Ignore ]
[ # 13 ]
Newbie
Total Posts: 1
Joined 2009-02-28
Regexen are only applied by lines, all surrounding lines are ignored in all situations. You’ll have to hack something up with a begin and end clause where the end clause is something *without* a blockquote marking … or something. I don’t really know how you’re going to get around that one.
Zero-width positive lookahead assertions to the rescue!
I haven’t tried to apply it to markdown blockquotes, but the below works for multi-line shell comments
< zone name = "comment.line.number-sign.bash" > < starts - with > < expression >( #).*($)\n?</expression> < capture number = "1" name = "punctuation.definition.comment.begin" /> </ starts - with > < ends - with > < expression >^(?= [ ^ #])</expression> < capture number = "0" name = "punctuation.definition.comment.end" /> </ ends - with > </ zone >
Posted: 28 February 2009 06:17 PM
[ Ignore ]
[ # 14 ]
Sr. Member
Total Posts: 232
Joined 2008-11-05
philip - 28 February 2009 11:17 AM
Regexen are only applied by lines, all surrounding lines are ignored in all situations. You’ll have to hack something up with a begin and end clause where the end clause is something *without* a blockquote marking … or something. I don’t really know how you’re going to get around that one.
Zero-width positive lookahead assertions to the rescue!
I haven’t tried to apply it to markdown blockquotes, but the below works for multi-line shell comments
< zone name = "comment.line.number-sign.bash" > < starts - with > < expression >( #).*($)\n?</expression> < capture number = "1" name = "punctuation.definition.comment.begin" /> </ starts - with > < ends - with > < expression >^(?= [ ^ #])</expression> < capture number = "0" name = "punctuation.definition.comment.end" /> </ ends - with > </ zone >
That’s odd. That didn’t work, last time I tried it.
As far as I know, the Regex parser should be *entirely* unaware of the existence of other lines in any capacity whatsoever. Must be an addition by Jan in one of the recent betas?
Signature
Ruby.sugar | Rails.sugar ? | Haml.sugar | SASS.sugar | Sugar Manager.sugar | Git.sugar | Regex.sugar | ERb.sugar | RSpec.sugar
http://elliottcable.name /contact.xhtml
Posted: 25 March 2009 06:50 PM
[ Ignore ]
[ # 15 ]
Newbie
Total Posts: 1
Joined 2009-03-25
1) If you could add “text” as an extension, that’d be great. Gruber (who is of course the creator of Markdown) uses .text for his own markdown documents: http://daringfireball.net/projects/markdown/index.text
2) I feel like an idiot but how the heck do I install a sugar?
3) Thanks for making this sugar. Markdown is awesome.
4) For anyone who hasn’t seen it, http://tinyurl.com/mshowdown is an as-you-type JS Markdown preview engine you can add to your own site.
5) And I made the easy-to-remember URL http://tinyurl.com/mkdndingus for the official Markdown dingus.