I have installed the Markdown module (1.2) and all works perfectly. Now I would like to use the Markdown syntax also, in certain circumstances, *inside* a UDT. For example, instead of writing in a UDT:
Code: Select all
echo 'This word is <em>emphasized</em>!';
I would like to write something like:
Code: Select all
echo Markdown('This word is _emphasized_!');
Is that possible? (More exactly, I need a UDT that reads an external file in Markdown syntax and outputs it in a page, but I suppose this is conceptually identical with the above trivial example.) I have browsed the documentation, and also the source code of the Markdown module: perhaps I need to have access to the function ContentPreCompile, but I know too little the internals of CMSMS... Can anyone help me to find the solution? Thank you very much in advance!