Yii Framework Forum: Small Bug In Cmarkdown - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Small Bug In Cmarkdown Rate Topic: -----

#1 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,193
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 15 October 2012 - 04:42 AM

Writing here to confirm, and because I don't have git account, so I can't rise new issue myself. If bug is confirmed, please start a new issue for me. Thx!
  • operating system: Windows Seven Home 64-bit
  • Web server: XAMPP 1.8.1
  • browser type: Chrome 21
  • Yii version: 1.1.12

I think I found a small bug in CMarkdown. I'm new to Markdown at all, so I don't know, if problem belongs to Yii class (wrapper) only or to whole Markdown.

If you put preformatted block (four spaces in the beginning):

 	return shell_exec("echo $input | $markdown_script");

as the last line of Markdown document, CMarkdown will incorrectly format it as:

<pre>return shell_exec("echo $input | $markdown_script");

<pre>

thus adding unnecessary space in the end.

If you follow such preformatted block with an empty line or line composed with spaces or tabs, it will be converted to another (second) empty line in pre block.

The only way to workaround this is to add any text after preformatted block.
[/size]
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users