Is it possible to disable markdown and buttons in the form to create/edit a topic/response?
AI-generated summary
The discussion revolves around disabling Markdown parsing and buttons in a form. benjamin_bnds asks if it’s possible to disable both Markdown and buttons. codinghorror suggests using CSS to hide buttons by setting display: none. benjamin_bnds acknowledges this but notes that Markdown parsing would still be active. riking questions the need for disabling Markdown, explaining that newlines would no longer work as intended in HTML. benjamin_bnds clarifies that for their project, they only want to allow newlines and links, not other Markdown features like bold or italics. riking proposes a CSS solution to disable bold and strong formatting. benjamin_bnds appreciates the idea. benjamin_bnds then asks how to disable Markdown only for users or visitors. cpradio clarifies that CSS cannot disable Markdown, as it’s unrelated to CSS, and questions the purpose of doing so. benjamin_bnds responds by quoting cpradio and acknowledging that CSS is not the right tool. cpradio agrees that CSS is not suitable for this task. benjamin_bnds concludes by noting that they’ve found a solution, though the details are not provided.
You can disable the buttons via CSS (set them to display:none) in Admin, Customize, CSS.
#wmd-button-bar { display: none; }
Thank you. But Markdown parsing will still be working.
Can we also disable it?
Uh, I think you could do that with a dialect, but why?
Your newlines wouldn’t work anymore (HTML will turn them into spaces), and people could still type HTML to get formatting.
This is an odd request - what do you actually want?
Indeed, for my project I think that allow only newlines and links will be great, but I don’t want to allow bold, italic, etc.
How about turning them off with CSS?
.cooked {
b, strong {
font-weight: normal;
}
i, cite, em, var, address, dfn {
font-style: normal;
}
// .....
}
Smart idea! Thanks I didn’t think about it.
Do you know how I can disable markdown only for users/visitors but enable it for administrators? I don’t find any CSS tip to do it.
You can’t do that via CSS. Markdown has nothing to do with CSS. I’m not sure why you’d want to do this to begin with. Why do you not want your users to format their content with markdown?
Are you afraid they’ll abuse it? Not know how to use it?
Look at the all conversation and you will understand why I’m talking about CSS tip.
Yes, and that’s a “clever” option, but I still don’t get it the “why”
Actually you’ve got the point ![]()