markdown does not work

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
bruco

markdown does not work

Post 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.
cyberman

Re: markdown does not work

Post by cyberman »

Have you tried this too?

Code: Select all

{content block='column3'|markdown}
bruco

Re: markdown does not work

Post by bruco »

cyberman wrote: Have you tried this too?

Code: Select all

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

Re: markdown does not work

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: markdown does not work

Post by calguy1000 »

You don't want to use the wysiwyg editor when using markdown.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bruco

Re: markdown does not work

Post 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}.
Last edited by bruco on Wed Jun 20, 2007 3:52 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”