Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
MarkDown and BBCode only
alan0209
New
Sorry for the newbie question but if I set the InputFormatter to 'Markdown' in my config file should I still be able to post html into the editor and have it render?
$Configuration`['Garden']['InputFormatter'] = 'Markdown';
At the moment I can still post html code in and I would like to prevent this. I have editied the following as well but still seem able to post all html codes.
$Configuration['Garden']['Html']['SafeStyles'] = TRUE; $Configuration['Garden']['Html']['AllowedElements'] = "b";
I've tried looking for the answer in these discussions but just seem to be getting more confused Quite a few refer to a plugin called HtmLawed which isn't showing in my list of plugins but does appear in my plugins folder and in my config file as...
$Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
Ultimately in addition to the MarkDown I would like to use the MathJaxCDN plugin which I think uses BBCode.
Thanks a lot
Alan
0
Comments
Markdown allows HTML, thats just the way markdown is.
You can use this plugin though:
http://vanillaforums.org/addon/markdownonly-plugin
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Or html is valid mardown to be precise.
Mardown wasn't intended to replace html, simply provide convenient, and readable syntax.
grep is your friend.
BBcode is even less of a standard than Markdown.
Just becuase a plugin uses BBCode like syntax for shortcodes, doesn’t mean it requires BBCode formatter.
grep is your friend.
BBcode is also much harder to type and a pain to support.
Markdown will hopefully become a real standard in the future:
http://commonmark.org
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Ultimately in addition to the MarkDown I would like to use the MathJaxCDN plugin which I think uses BBCode.
try it, before making assumptions.
not sure you read the plugin description.
Adds MathJax JavaScript to forum so that your users can use LaTeX in comments inline using [Math tag
tested in vanilla 2.1 using BBCode, Markdown and Html formatters.
Modification to initial code created by Prihandokorudi.
also uses cdn at http://cdn.mathjax.org/mathjax/latest/MathJax.js
a few examples:
[math]{x^2-1}[/math]
[math] y = \frac{1}{x^2-1} \hbox{ when $x \ne \pm 1$.}[/math]
[math \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)[/math]
Note: the formatted formula appears after you refresh the screen after posting comment.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thanks for the comments guys. I will take a look at the markdown only plugin!
@peregrine I have been playing with your awesome plugin but when working through your steps on how to add it to the button to the buttonbar I saw you were adding
[math][/math]
and assumed this was bbcode (which I know nothing about so sorry for any confusion on my part there.
Thanks again.
Alan
no prob.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@alan0209
check out new version of http://vanillaforums.org/addon/mathjaxcdn-plugin just posted.
It includes refresh improvements with code provided by @Bleistivt as well as a typo bug fix he pointed out.
thanks @Bleistivt for the improvements.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
cool, thanks. wiil do.