Page 1 of 1

markdown does not work

Posted: Tue Jun 12, 2007 8:54 pm
by bruco
I have tested succesfully {cms_markdown}{content block='column3'}{/cms_markdown} in version 1.0.2
But it does not work anymore in versions 1.0.6 and 1.0.7.

Re: markdown does not work

Posted: Tue Jun 12, 2007 9:10 pm
by cyberman
Have you tried this too?

Code: Select all

{content block='column3'|markdown}

Re: markdown does not work

Posted: Fri Jun 15, 2007 11:03 pm
by bruco
cyberman wrote: Have you tried this too?

Code: Select all

{content block='column3'|markdown}
Yes. It does not work, too.

Re: markdown does not work

Posted: Tue Jun 19, 2007 11:29 pm
by bruco
cyberman wrote: Have you tried this too?

Code: Select all

{content block='column3'|markdown}
After some experiments, I have realized that if I write the page content in source mode (which I have to enter explicitely) and I confirm with the submit button, then it is translated in html correclty. But the next time I go to edit the page, the content is no longer correctly recognized.

For example, if I write

Code: Select all

# Title
the first time I save the page, I can view it as I expect, with a title. But when I edit the page, in FCKEditor I find

Code: Select all

# Title
in wysiwig mode, and

Code: Select all

<p># Title</p>
is source mode, so that the page will be displayed in the wrong way.
Is there any solution to this problem?

Re: markdown does not work

Posted: Wed Jun 20, 2007 12:05 am
by calguy1000
You don't want to use the wysiwyg editor when using markdown.

Re: markdown does not work

Posted: Wed Jun 20, 2007 5:19 am
by bruco
calguy1000 wrote: You don't want to use the wysiwyg editor when using markdown.
Yes, if I set "Select WYSIWYG editor to use" to "None" in My Preferences > User Preferences, all works fine, but so doing I have to write all the pages in source code mode, irrespective of the template they use.
In other words: I cannot use markdown in some pages, and work in WYSIWYG mode in other ones.

Am I right?

Edit:
Now, after having tested several editors (FCKEditor, TinyMCE, XStandard, and others), I have realized the source of the problem. When I create the page in pure text mode, the page is displayed well. But when next time I edit the page, the editor (whatever it is) is always invoked in wysiwyg mode, and the previous (pure text) content is wrongly rendered.
If this is the standard behaviour of the program, I wish to ask a feature according to which the editor is invoked in pure text (non wysiwig) mode when editing a page whose template contains

Code: Select all

{content|markdown}.