Title: Markdown code block format
Last modified: September 13, 2021

---

# Markdown code block format

 *  Resolved [will8216](https://wordpress.org/support/users/will8216/)
 * (@will8216)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/markdown-code-block-format/)
 * Hello guys, I have a problem about using markdown + postie. The indentation is
   not preserved. Is there any way to make postie to preserve the indentation?
 * I wrote this in my Email:
 *     ```
       Python
       import os
       from PIL import Image
   
       yourpath = os.getcwd()
       for root, dirs, files in os.walk(yourpath, topdown=False):
           for name in files:
               print(os.path.join(root, name))
               if os.path.splitext(os.path.join(root, name))[1].lower() == ".tiff":
                   if os.path.isfile(os.path.splitext(os.path.join(root, name))[0] + ".jpg"):
                       print "A jpeg file already exists for %s" % name
                   # If a jpeg is *NOT* present, create one from the tiff.
                   else:
                       outfile = os.path.splitext(os.path.join(root, name))[0] + ".jpg"
                       try:
                           im = Image.open(os.path.join(root, name))
                           print "Generating jpeg for %s" % name
                           im.thumbnail(im.size)
                           im.save(outfile, "JPEG", quality=100)
                       except Exception, e:
                           print e
       ```
   
 * what ends up in my blog:
    [Indentation gone](https://ibb.co/JmWHdCX)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/markdown-code-block-format/#post-14872632)
 * I don’t see any markdown markup. Which markdown plugin are you using?

Viewing 1 replies (of 1 total)

The topic ‘Markdown code block format’ is closed to new replies.

 * ![](https://ps.w.org/postie/assets/icon-256x256.png?rev=970083)
 * [Postie](https://wordpress.org/plugins/postie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postie/)
 * [Active Topics](https://wordpress.org/support/plugin/postie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postie/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [indentation](https://wordpress.org/support/topic-tag/indentation/)

 * 1 reply
 * 2 participants
 * Last reply from: [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/markdown-code-block-format/#post-14872632)
 * Status: resolved