Turn off Textile in your article

Here is a simple tip for turning off Textile in your article. Having forgotten how to do this in the past, I thought it might be useful to note the three main methods for doing so. Which one to use depends on your needs.

The three methods

  1. Turn off Textile for your article
  2. Enter a space in the body
  3. Use .notextile

Turn off Textile

First up you can turn off Textile completely for your article by choosing Advanced Options from within the Write tab, and under Article Markup choose either Convert linebreaks or Leave text untouched. More info may be found on these options here.

Enter a space

If you need to enter some HTML directly in your article, and don’t want the HTML tags to be wrapped with <p> tags, you can enter a space before your HTML tags like so:

 <div class="class">
Some text
 </div>
some more text...

Use notextile.

If like me you find it easy to forget to enter a space or delete them by mistake, Textile features a handy tag – notextile.

notextile. <div class="class">
h3. Title
Some text
notextile. </div>
some more text...

My personal preference is the last method, because its tidy and a space is easily missed and/or deleted.

comments powered by Disqus