ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

textile and markdown

July 01, 2007 8:42pm

Subscribe [2]
  • #1 / Jul 01, 2007 8:42pm

    restiffbard

    1 posts

    In case anyone else has a similar issue using the textile or markdown plugins I thought I’d offer this bit before someone else goes bald.

    I wanted textile formatting for comments and so I added the {exp:textile}{/exp:textile}around my {comment} in the template. For some reason though the only textile options that seemed to be working were _emphasis_ and *strong*. But, if I added some text on a line before using a textile block option like a blockquote (bq.) then the blockquote textile would work.

    That’s not exactly optimal. It would odd to tell commenters they needed to preface certain textile markup with a line of plain text.

    The solution? Whitespace. I had indented the {comment} between the opening and closing textile option like so:

    {exp:textile}
            {comment}
    {/exp:textile}

    That dunna work. In your template it should look like this:

    {exp:textile}{comment}{/exp:textile}

    No whitespace, no line-breaks.

    The same should hold true for Markdown as well as when dealing with {body} or any portion of your template that you want formatted with these modifiers. Also, text formatting should be set to none wherever you’re using them. Hope this wasn’t too obvious for everyone else lest I feel foolish. 😊

  • #2 / Jul 02, 2007 10:54pm

    budparr

    128 posts

    Thanks for this. I’ve been using textile on my blog with mixed results. One thing though, when you install the textile plugin, you can go to your “edit custom fields” page and select textile as the default text formatting for the field. I’ve not used textile tags with no formatting though, but just wanted to make you aware of the option. Thanks for the tip!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases