
table attributes/span, div not in documentation
Reported by h3rald (at h3rald) | June 2nd, 2009 @ 07:51 AM | in 4.2.0
Textile support for block elements like div and tables is currently a bit limited, in particular:
- There's no Textile syntax for div tags or similar (unless I overlooked it)
- Textile syntax for tables is very nice, but it cannot be used effectively for multiline cells.
DIV:
/div#sec1(section)
This text will be wrapped in a <div id="sec1" class="section"></div>
div/
TABLE:
/table
/tr
/th Header 1 th/
/th Header 2 th/
tr/
/tr
/td Header 1 td/
/td
This cell can contain
multiline text.
td/
tr/
table/
What do you think? It's still faster than typing HTML, and it shouldn't conflict with existing textile syntax.
Comments and changes to this ticket
-
Paweł Gościcki June 2nd, 2009 @ 10:50 AM
Invalid?
There is already syntax for div:
RedCloth.new("div. asdf").to_html
=> "asdf"And table cells as of lately can be multiline.
-
-
Jason Garber June 2nd, 2009 @ 02:28 PM
- Title changed from Suggestion for block element syntax to table attributes/span, div not in documentation
- Tag changed from div, feature, table to div, documentation, table
- State changed from new to resolved
You were right, it was missing from the documentation. I added it about 4 hours ago. Thanks!
-
h3rald (at h3rald) June 2nd, 2009 @ 03:26 PM
Hmm hang on...
div. A simple div >>
A sample div^^ This is rather pointless: does it support multiple lines? I tried it on the home page of RedCloth.org and it doesn't seem to work.
You could implement something like this...
div(section)..
This is a header
this is a paragraph
div(section)..
This is a header
this is a paragraph
...but again, nesting divs would be close to impossible.
I know these are issues related to page layout and maybe a bit out of Textile's domain, nevertheless it would be cool if you could support them in some clever way.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
RedCloth is a Ruby library for converting Textile into HTML