Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making it easier to use Textile inside table cells #79

Closed
maniqui opened this issue Sep 11, 2012 · 4 comments
Closed

making it easier to use Textile inside table cells #79

maniqui opened this issue Sep 11, 2012 · 4 comments

Comments

@maniqui
Copy link

maniqui commented Sep 11, 2012

First, a reminder.

You can write Textile for a table like this:

|This|is|a|table|

And better yet, you can also write it with an space between the pipes and the cell content, making it more readable (imo), and more user-friendly, like this:

| This | is | a | table |

It's cool that we can already use Textile inside table cells (also created using Textile).
Little problem is that, for doing so, users can't put spaces between the pipe (|) and the Textile content.

On this example, the Textile on the last table cell won't work

| This | is | a | table | * a list
* inside it |

The space between the | and the * would turn Textile off.
If you remove the space, then it will work:

| This | is | a | table |* a list
* inside it |

So, the request is: could Textile work inside table cells without the requirement of not having a blank space between the | and the Textile modifiery (ie. * for unordered lists, ; for definition lists, etc)?

(a suggestion on how to make it working: maybe, internally, Textile could remove the spaces between pipes and cell content, prior to processing the content?)

@eliph
Copy link

eliph commented Sep 14, 2012

Hi Maniqui,

bulleted lists start with an asterix at the beginning of a line. Why should a space be allowed when used within a table?

eliph

@maniqui
Copy link
Author

maniqui commented Sep 14, 2012

Well, I admit it's just a matter of readability.
If you use to write an space between the | and the content, then, using lists (ul, ol, dl) require you to make an exception (ie. to remove the space).
If I've to teach Textile tables to someone, I'd probably do it by using spaces between pipes and content, to make it more readable. But then, I'll also have to teach some exception rules to the user.

@netcarver
Copy link
Contributor

Done and pushed to the issue-79 branch for testing. Let me know how if works out for you please maniqui and/or eliph.

@netcarver
Copy link
Contributor

Resolved by 1289f7b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants