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.
Configuring Input Options
TinyGarden
New
I would like to disable HTML but still allow Markdown.
Disabling HtmLawed prevents all HTML, including HTML generated by Markdown.
If there is documentation for this, my apologies. Please be so kind as to point me to the right page to read.
Tagged:
0
Best Answer
-
hgtonight MVP
Markdown allows inline HTML. This is part of the Markdown specification.
You could still strip out all the tags, but then you aren't really parsing Markdown properly.
Sounds like a custom plugin is in order.
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
2
Answers
Have you tried adding this Configuration to the config.php?
$Configuration['Garden']['InputFormatter']='Markdown';
or
$Configuration['Garden']['ForceInputFormatter']='Markdown';
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Yes, I have the following:
$Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
$Configuration['Garden']['InputFormatter'] = 'Markdown';
This still allows user-entered HTML.
What Vanilla version and what text editor are you using ?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Vanilla version is 2.2.15 and whatever comes out of the box. I don't have anything installed for editing.
Markdown allows inline HTML. This is part of the Markdown specification.
You could still strip out all the tags, but then you aren't really parsing Markdown properly.
Sounds like a custom plugin is in order.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
The current Stable version is 2.1 please use that one or file the bugs for the 2.2 at Github.
I don't use that version and can't test for you what could be wrong.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlinder - Good point. I'll stick to 2.1
@hgtonight - Sigh, I think you're right.
Something basic to start with http://vanillaforums.org/addon/markdownonly-plugin
cool! here is an icon for your plugin
I will not be able to do these for a while so ..... if you want something else let me know real soon...
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Awww, that's awesome! Thanks so much!
You are very Welcome!
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Markdown specification allows html. A more accurate name would be Markdown without html.
Markdown was always complementary of html:
grep is your friend.