From why at hobix.com Mon Nov 14 15:35:41 2005 From: why at hobix.com (why the lucky stiff) Date: Mon, 14 Nov 2005 13:35:41 -0700 Subject: New RedCloth repository Message-ID: <4378F51D.5010409@hobix.com> Starting with RedCloth 3.1, we're switching to the `redcloth3' module in Rubyforge CVS: cvs -d :pserver:anonymous at rubyforge.org:/var/cvs/redcloth login cvs -d :pserver:anonymous at rubyforge.org:/var/cvs/redcloth checkout redcloth3 _why // From sl33p3r at free.fr Mon Nov 14 16:46:09 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Mon, 14 Nov 2005 22:46:09 +0100 Subject: Yeah !!! Message-ID: <20051114214609.GA10739@hal.void.org> Wow !! Seems like RedCloth is now able to output DocBook !!!! Great I have to Say !!! -- Frederick Ros aka Sleeper -- sleeper at jabber.fr Make sure special cases are truly special. - The Elements of Programming Style (Kernighan & Plaugher) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20051114/457bf1a2/attachment.bin From cardmagic at gmail.com Mon Nov 14 16:48:10 2005 From: cardmagic at gmail.com (Lucas Carlson) Date: Mon, 14 Nov 2005 13:48:10 -0800 Subject: Yeah !!! In-Reply-To: <20051114214609.GA10739@hal.void.org> References: <20051114214609.GA10739@hal.void.org> Message-ID: <83D85F87-88F9-4DB1-9C55-386E34F85F19@rufy.com> Thanks, I have been working on that for a while now and it is pretty robust. I have a few fixes here and there, but want to move to the repository to subversion before I commit them. -Lucas http://rufy.com/ On Nov 14, 2005, at 1:46 PM, Frederick Ros wrote: > Wow !! Seems like RedCloth is now able to output DocBook !!!! > > Great I have to Say !!! > > -- > Frederick Ros aka Sleeper -- sleeper at jabber.fr > > Make sure special cases are truly special. > - The Elements of Programming Style (Kernighan & Plaugher) > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards From why at hobix.com Wed Nov 16 13:59:18 2005 From: why at hobix.com (why the lucky stiff) Date: Wed, 16 Nov 2005 11:59:18 -0700 Subject: RedCloth repository moved to SVN Message-ID: <437B8186.5030408@hobix.com> I've been getting increasing resistance from helpers who prefer Subversion over CVS. I feel that it's slowing down development. So, done. Mailing lists, releases, news will still be at Rubyforge. Bug tracking will likely move to the new repository soon as well. The new repository is at: http://code.whytheluckystiff.net/ Checkout RedCloth from http://code.whytheluckystiff.net/svn/redcloth/trunk I haven't checked in Lucas' changes yet. I wanted to keep the old revisions. I'll be merging those in before tomorrow. I'm sorry but no one has commit rights at the moment. I'm working on a means of using your Rubyforge account through the new repo. I'll let you know. _why From cardmagic at gmail.com Wed Nov 16 14:50:02 2005 From: cardmagic at gmail.com (Lucas Carlson) Date: Wed, 16 Nov 2005 11:50:02 -0800 Subject: RedCloth repository moved to SVN In-Reply-To: <437B8186.5030408@hobix.com> References: <437B8186.5030408@hobix.com> Message-ID: <460D9D7C-31F3-4EE2-A703-CD338CE6F636@gmail.com> Sweeeeeeeeeet. Thanks so much! I can't wait! By the way, _why, do you want me to work in my own branch or on the trunk? - Lucas http://rufy.com/ On Nov 16, 2005, at 10:59 AM, why the lucky stiff wrote: > I've been getting increasing resistance from helpers who prefer > Subversion over CVS. I feel that it's slowing down development. So, > done. Mailing lists, releases, news will still be at Rubyforge. Bug > tracking will likely move to the new repository soon as well. > > The new repository is at: http://code.whytheluckystiff.net/ > > Checkout RedCloth from http://code.whytheluckystiff.net/svn/ > redcloth/trunk > > I haven't checked in Lucas' changes yet. I wanted to keep the old > revisions. I'll be merging those in before tomorrow. > > I'm sorry but no one has commit rights at the moment. I'm working > on a > means of using your Rubyforge account through the new repo. I'll let > you know. > > _why > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards From why at hobix.com Wed Nov 16 14:54:45 2005 From: why at hobix.com (why the lucky stiff) Date: Wed, 16 Nov 2005 12:54:45 -0700 Subject: RedCloth repository moved to SVN In-Reply-To: <460D9D7C-31F3-4EE2-A703-CD338CE6F636@gmail.com> References: <437B8186.5030408@hobix.com> <460D9D7C-31F3-4EE2-A703-CD338CE6F636@gmail.com> Message-ID: <437B8E85.8060100@hobix.com> Lucas Carlson wrote: >Sweeeeeeeeeet. Thanks so much! I can't wait! By the way, _why, do you >want me to work in my own branch or on the trunk? > > Well, I'd like this all to get into trunk as soon as possible. You can tarball up all the changes you've made and I can merge 3.0.4 with that. I've become quite familar with your new layout and I should be able to make just a few snips to bring everything together. Then we'll check back out from SVN tomorrow and be on our merry way. _why From cardmagic at gmail.com Wed Nov 16 15:01:55 2005 From: cardmagic at gmail.com (Lucas Carlson) Date: Wed, 16 Nov 2005 12:01:55 -0800 Subject: RedCloth repository moved to SVN In-Reply-To: <437B8E85.8060100@hobix.com> References: <437B8186.5030408@hobix.com> <460D9D7C-31F3-4EE2-A703-CD338CE6F636@gmail.com> <437B8E85.8060100@hobix.com> Message-ID: <253A3939-E23F-4143-A710-9BE0D903A7BD@gmail.com> Out of curiosity, is there anything I have been doing that you don't want me to do or change? - Lucas http://rufy.com/ On Nov 16, 2005, at 11:54 AM, why the lucky stiff wrote: > Lucas Carlson wrote: > >> Sweeeeeeeeeet. Thanks so much! I can't wait! By the way, _why, do you >> want me to work in my own branch or on the trunk? >> >> > Well, I'd like this all to get into trunk as soon as possible. You > can > tarball up all the changes you've made and I can merge 3.0.4 with > that. > I've become quite familar with your new layout and I should be able to > make just a few snips to bring everything together. > > Then we'll check back out from SVN tomorrow and be on our merry way. > > _why > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards From why at hobix.com Wed Nov 16 15:49:27 2005 From: why at hobix.com (why the lucky stiff) Date: Wed, 16 Nov 2005 13:49:27 -0700 Subject: RedCloth repository moved to SVN In-Reply-To: <253A3939-E23F-4143-A710-9BE0D903A7BD@gmail.com> References: <437B8186.5030408@hobix.com> <460D9D7C-31F3-4EE2-A703-CD338CE6F636@gmail.com> <437B8E85.8060100@hobix.com> <253A3939-E23F-4143-A710-9BE0D903A7BD@gmail.com> Message-ID: <437B9B57.3090906@hobix.com> Lucas Carlson wrote: >Out of curiosity, is there anything I have been doing that you don't >want me to do or change? > > Unless you're wearing pleated jeans: no. _why From cardmagic at gmail.com Sun Nov 20 21:21:55 2005 From: cardmagic at gmail.com (Lucas Carlson) Date: Sun, 20 Nov 2005 18:21:55 -0800 Subject: New code: proposed release? Message-ID: So I just wanted to review what most of my new code does for those who are not familiar with it yet. ====== The biggest feature of my work is the docbook export. This means that any valid textile markup can be exported to the docbook standard. I added a new chapter tag to go along with the export. ch. 1. Here is the title In HTML, this will produce:

1. Here is the title

In Docbook, this will produce: Here is the title ====== Another major features I have implemented is allowing for div's (multi-line chunks). Whereas before if you did: p(some_class). here is a paragraph of text Now you can also do: div(some_class). Here are many paragraphs of text. All styled will some_class. Yay. div(some_class). ====== I also implemented a definition list that follows this standard: in: |- here is a definition list: - yes := no - no:=no - maybe:= yes out: |-

here is a definition list:

yes
no
no
no
maybe
yes
====== One of the cooler features is continued lists: --- in: |- # one # two # three test #_ four # five # six test #_ seven # eight # nine out: |-
  1. one
  2. two
  3. three

test

  1. four
  2. five
  3. six

test

  1. seven
  2. eight
  3. nine
===== Another bonus feature to lists: in: |- # six _# a continuation of six out: |-
  1. six

    a continuation of six

===== I also fixed an odd behavior of tables where blank 's (via ||) simply didn't show up. Now they are converted to  . ===== Otherwise, RedCloth passes all its previous unit tests and all the new ones I wrote to test the features I added. (I also make running unit tests a lot nicer BTW: try rake test). So I propose we make a release with all these new spanking features. Are there any pressing bugs that should stop us from doing so? What version number should we go for? The ultra-conservative 3.0.5 release... the conservative 3.1.0 release... the crack-addict 4.0.0 release... the idiot-savant 1.2.3 release... the Bill Gates RedCloth 2005 release... the Apple RedCloth Nano release... the typical SourceForge project 3.0.4a11202005 release? - Lucas http://rufy.com/ From sl33p3r at free.fr Sun Nov 20 23:54:39 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Mon, 21 Nov 2005 05:54:39 +0100 Subject: New code: proposed release? In-Reply-To: References: Message-ID: <20051121045439.GE9446@hal.void.org> Lucas Carlson wrote : | So I just wanted to review what most of my new code does for those | who are not familiar with it yet. | | .... Wow quite a lot of new exciting stuff here ! I'm going to have a look at this ! | So I propose we make a release with all these new spanking features. | Are there any pressing bugs that should stop us from doing so? What | version number should we go for? The ultra-conservative 3.0.5 | release... the conservative 3.1.0 release... the crack-addict 4.0.0 | release... the idiot-savant 1.2.3 release... the Bill Gates RedCloth | 2005 release... the Apple RedCloth Nano release... the typical | SourceForge project 3.0.4a11202005 release? +1 for 3.0.5 -- Frederick Ros aka Sleeper -- sleeper at jabber.fr "...Deep Hack Mode--that mysterious and frightening state of consciousness where Mortal Users fear to tread." (By Matt Welsh) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20051121/042db043/attachment.bin From why at hobix.com Mon Nov 21 01:06:41 2005 From: why at hobix.com (why the lucky stiff) Date: Sun, 20 Nov 2005 23:06:41 -0700 Subject: New code: proposed release? In-Reply-To: References: Message-ID: <438163F1.9040508@hobix.com> Lucas Carlson wrote: >So I propose we make a release with all these new spanking features. >Are there any pressing bugs that should stop us from doing so? What >version number should we go for? The ultra-conservative 3.0.5 > Yes, 3.0.5. A few changes I've just made: * let's merge bin/redcloth and bin/redcloth_to_docbook. the output format should be a commandline flag. * docbook support isn't loaded by default. * use 'redcloth/all_formats' to load every output format. Good work, rufy. _why From cardmagic at gmail.com Mon Nov 21 02:16:19 2005 From: cardmagic at gmail.com (Lucas Carlson) Date: Sun, 20 Nov 2005 23:16:19 -0800 Subject: Code blocks Message-ID: Oh yes, also I added a shortcut for code blocks. Instead of
, you can surround it with three backticks (```).

- Lucas
http://rufy.com/



From cardmagic at gmail.com  Mon Nov 21 02:47:13 2005
From: cardmagic at gmail.com (Lucas Carlson)
Date: Sun, 20 Nov 2005 23:47:13 -0800
Subject: Hard_breaks issue
Message-ID: <8362E987-FCF0-4680-B9F4-16650B1D1A0C@gmail.com>

Hi all, I can dive into it and figure out why using hard_breaks  
breaks RedCloth parsing so badly since 3.0.4, but I was wondering if  
someone could point me to the right direction. Thanks!

- Lucas
http://rufy.com/



From why at hobix.com  Mon Nov 21 03:56:26 2005
From: why at hobix.com (why the lucky stiff)
Date: Mon, 21 Nov 2005 01:56:26 -0700
Subject: Hard_breaks issue
In-Reply-To: <8362E987-FCF0-4680-B9F4-16650B1D1A0C@gmail.com>
References: <8362E987-FCF0-4680-B9F4-16650B1D1A0C@gmail.com>
Message-ID: <43818BBA.3090309@hobix.com>

Lucas Carlson wrote:

>Hi all, I can dive into it and figure out why using hard_breaks  
>breaks RedCloth parsing so badly since 3.0.4, but I was wondering if  
>someone could point me to the right direction. Thanks!
>  
>
It's probably the updated hard_breaks code, which was changed to handle 
bug #1760 on Rubyforge.  Try the latest code in SVN.  If it breaks, swap 
in the hard_breaks method from the previous revision.

Now, if you're still seeing the error, hand out some test cases and I'm 
sure it's something minor.  I should start adding hard_breaks tests to 
some of the existing tests.

_why

From why at hobix.com  Mon Nov 21 04:07:11 2005
From: why at hobix.com (why the lucky stiff)
Date: Mon, 21 Nov 2005 02:07:11 -0700
Subject: Code blocks
In-Reply-To: 
References: 
Message-ID: <43818E3F.4010306@hobix.com>

Lucas Carlson wrote:

>Oh yes, also I added a shortcut for code blocks. Instead of  
>
, you can surround it with three backticks (```).
>  
>
This is unnecessary.  You can simply indent the code block and get the 
same effect.

That is.. if Markdown compatibility is on.  Else, if someone is using 
pure Textile, my belief is there should be no custom extensions to Textile.

_why

From why at hobix.com  Mon Nov 21 04:16:24 2005
From: why at hobix.com (why the lucky stiff)
Date: Mon, 21 Nov 2005 02:16:24 -0700
Subject: New code: proposed release?
In-Reply-To: 
References: 
Message-ID: <43819068.50804@hobix.com>

Lucas Carlson wrote:

>The biggest feature of my work is the docbook export. This means that  
>any valid textile markup can be exported to the docbook standard. I  
>added a new chapter tag to go along with the export.
>
>   ch. 1. Here is the title
>
>In HTML, this will produce:
>   

1. Here is the title

> >In Docbook, this will produce: > > Here is the >title > > > What about: h1(#1). Here is the title Maybe? >Another bonus feature to lists: > >in: |- > # six > _# a continuation of six > > > Why not just: # six a continuation of six # seven # eight Do hard breaks break? I think all the extended syntax needs to go in an optional module, I'm not ready to add anything beyond what Textile and Markdown become when combined. _why From cardmagic at gmail.com Mon Nov 21 15:42:45 2005 From: cardmagic at gmail.com (Lucas Carlson) Date: Mon, 21 Nov 2005 12:42:45 -0800 Subject: Code blocks In-Reply-To: <43818E3F.4010306@hobix.com> References: <43818E3F.4010306@hobix.com> Message-ID: <507be64e0511211242x5d84a08ey18a226ffd5ff05f0@mail.gmail.com> If you are writing a book full of code blocks (like I am), this is far far far far far from unnecessary. You have no idea how many times other authors do the following:

As well as every other combination you can think of. Indenting isn't a great solution either since you always have to keep count, it is a big pain in the neck. Honestly, this is an enormous problem for using textile to write books or code blocks, and the ``` is an elegant solution since it feels a lot like escaping code in Ruby (`ls -la`). Please give it another thought, thanks! -Lucas On 11/21/05, why the lucky stiff wrote: > Lucas Carlson wrote: > > >Oh yes, also I added a shortcut for code blocks. Instead of > >
, you can surround it with three backticks (```).
> >
> >
> This is unnecessary.  You can simply indent the code block and get the
> same effect.
>
> That is.. if Markdown compatibility is on.  Else, if someone is using
> pure Textile, my belief is there should be no custom extensions to Textile.
>
> _why
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
>


--
-Lucas
http://rufy.com/


From why at hobix.com  Mon Nov 21 17:41:25 2005
From: why at hobix.com (why the lucky stiff)
Date: Mon, 21 Nov 2005 15:41:25 -0700
Subject: Code blocks
In-Reply-To: <507be64e0511211242x5d84a08ey18a226ffd5ff05f0@mail.gmail.com>
References: 	<43818E3F.4010306@hobix.com>
	<507be64e0511211242x5d84a08ey18a226ffd5ff05f0@mail.gmail.com>
Message-ID: <43824D15.3030702@hobix.com>

Lucas Carlson wrote:

>Honestly, this is an enormous problem for using textile to write books
>or code blocks, and the ``` is an elegant solution since it feels a
>lot like escaping code in Ruby (`ls -la`).
>  
>
It has weaknesses still.  How can you apply a class or an ID to it?  If 
there is to be an added syntax, I'd like it to carry all the benefits of 
the traditional Textile syntax.

I like the work you've done.  I feel like the new syntax deserves scrutiny.

_why

From cardmagic at gmail.com  Mon Nov 21 18:42:25 2005
From: cardmagic at gmail.com (Lucas Carlson)
Date: Mon, 21 Nov 2005 15:42:25 -0800
Subject: Code blocks
In-Reply-To: <43824D15.3030702@hobix.com>
References: 	<43818E3F.4010306@hobix.com>
	<507be64e0511211242x5d84a08ey18a226ffd5ff05f0@mail.gmail.com>
	<43824D15.3030702@hobix.com>
Message-ID: 

> I like the work you've done.  I feel like the new syntax deserves  
> scrutiny.

I totally agree!

> It has weaknesses still.  How can you apply a class or an ID to  
> it?  If
> there is to be an added syntax, I'd like it to carry all the  
> benefits of
> the traditional Textile syntax.

Good idea, it can still work.

```(test)
here it is
```


here it is
-Lucas From sd at notso.net Tue Nov 22 10:22:39 2005 From: sd at notso.net (Sebastian Delmont) Date: Tue, 22 Nov 2005 10:22:39 -0500 Subject: Patches? Message-ID: <847D7E7D-E83E-410E-B3E7-BDEEB172E994@notso.net> I have a few of patches for RC. A quick fix for a bug in clean_html, an improvement to clean_html to sanitize more links, and the addition of "filter_classes" and "filter_ids". What should I do? Email them to someone? why? (sorry, couldn't avoid it) I actually don't have separate patches for each, but could do them if needed. The first two are "one liners", and the filter_* is not too complex. I've included the patch file in case you guys want to take a look. It's based on 3.0.4, downloaded as a gem. It can't be applied directly to the svn trunk, but the bugs are still there. This fixes a bug that caused clean_html to die on me. @@ -1114,8 +1120,8 @@ q2 = ( q != '' ? q : '\s' ) if raw[3] =~ /#{prop}\s*=\s*#{q}([^#{q2}]+)# {q}/i attrv = $1 - pcs << "#{prop}=\"#{$1.gsub('"', '\\"')}\"" + pcs << "#{prop}=\"#{attrv.gsub('"', '\ \"')}\"" break end end This makes sure all your src and hrefs are limited to http, https or ftp, avoiding nasty file or javascript links @@ -1114,8 +1120,8 @@ q2 = ( q != '' ? q : '\s' ) if raw[3] =~ /#{prop}\s*=\s*#{q}([^#{q2}]+)# {q}/i attrv = $1 - next if prop == 'src' and attrv =~ %r{^ (?!http)\w+:} + next if (prop == 'src' or prop == 'href') and not attrv =~ %r{^(http|https|ftp):} break end end The rest of the changes are for filter_classes and filter_ids. I don't want user content to abuse my css classes and ids. Anyway, thanks for redcloth, textile rulez, long life to textile, long life to redcloth -------------- next part -------------- A non-text attachment was scrubbed... Name: redcloth.diff Type: application/octet-stream Size: 2499 bytes Desc: not available Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20051122/4a86bd77/redcloth.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2353 bytes Desc: not available Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20051122/4a86bd77/smime.bin From why at hobix.com Tue Nov 22 12:34:08 2005 From: why at hobix.com (why the lucky stiff) Date: Tue, 22 Nov 2005 10:34:08 -0700 Subject: Patches? In-Reply-To: <847D7E7D-E83E-410E-B3E7-BDEEB172E994@notso.net> References: <847D7E7D-E83E-410E-B3E7-BDEEB172E994@notso.net> Message-ID: <43835690.4050405@hobix.com> Sebastian Delmont wrote: > I have a few of patches for RC. If you like, you may patch the source directly. 1. Use your Rubyforge account at http://code.whytheluckystiff.net/access/ 2. Checkout: svn co http://code.whytheluckystiff.net/svn/redcloth/trunk redcloth 3. Make changes, then in the `redcloth' dir: svn ci. _why From why at hobix.com Thu Nov 24 13:36:30 2005 From: why at hobix.com (why the lucky stiff) Date: Thu, 24 Nov 2005 11:36:30 -0700 Subject: Warnings on tests Message-ID: <4386082E.5010509@hobix.com> Lucas, tell me about changeset 103. The require lines are causing a pile of warnings. Were you having problems with the previous revision? _why From cardmagic at gmail.com Thu Nov 24 15:28:18 2005 From: cardmagic at gmail.com (Lucas Carlson) Date: Thu, 24 Nov 2005 12:28:18 -0800 Subject: Warnings on tests In-Reply-To: <4386082E.5010509@hobix.com> References: <4386082E.5010509@hobix.com> Message-ID: <507be64e0511241228r18bf1290lc926e1962d7c1c05@mail.gmail.com> I am sorry, I didn't mean for that code to be released yet, but the code it replaces doesn't work either so I was trying to fix it at the time. On 11/24/05, why the lucky stiff wrote: > Lucas, tell me about changeset 103. > > > The require lines are causing a pile of warnings. Were you having > problems with the previous revision? > > _why > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards > -- -Lucas http://rufy.com/