# How do I disable Markdown completely?

**URL:** https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727
**Category:** Support
**Created:** [August 17, 2016, 9:06am UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727 "2016-08-17T09:06:11Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 9:06am UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/1 "2016-08-17T09:06:11Z")

</div>

Basically, title says it all. How do I disable Markdown for the whole forum? Same question about BBCode and HTML.

The only thing that should be allowed to be formatted - is line breaks.

Thanks.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 17, 2016, 9:23am UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/2 "2016-08-17T09:23:25Z")

</div>

There is no way to do this at the current time.

---

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 9:40am UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/3 "2016-08-17T09:40:01Z")

</div>

What if I replace PrettyText.cook on line 266 `sanitized = markdown(working_text, options)` to `sanitized = working_text` ? And remove the preview pane for the comment.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [August 17, 2016, 3:50pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/4 "2016-08-17T15:50:29Z")

</div>

Then you’re going to have a “fun” time when you go to upgrade Discourse.

What’s the reasoning behind this? Would hiding the composer toolbar work for you?

---

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 3:52pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/5 "2016-08-17T15:52:48Z")

</div>

I’m not going to upgrade then.

Reasoning is that someone has typed a list of 20 rows, each prefixed by “#”. Now I have 20 H1’s and SEO manager gives me headaches saying that Google doesn’t like when there’s more than 1 H1 per page.

So yes, it’s critical for me to remove this “feature” completely and avoid such things in the future.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [August 17, 2016, 4:02pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/6 "2016-08-17T16:02:19Z")

</div>

Could you simply blacklist `#`?

---

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 4:28pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/7 "2016-08-17T16:28:18Z")

</div>

How do I blacklist all the markdown tags?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [August 17, 2016, 4:50pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/8 "2016-08-17T16:50:58Z")

</div>

The SitePoint forum is a web dev forum.

Hence very often code that contains the hash symbol in a comment or CSS gets posted.

If a new member does not fence the code, it makes for some rather unsightly posts.

I’d even go so far to say that posts that require reformating because of that, and HTML tags that don’t get displayed, are probably the most common Moderator “task”.

---

<div class="post-metadata">

### Author: ![wil93](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wil93/32/121264_2.png) [@wil93](https://meta.discourse.org/u/wil93)
#### Post date: [August 17, 2016, 5:02pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/9 "2016-08-17T17:02:09Z")

</div>

> [@alfuken](#):
>
> someone has typed a list of 20 rows, each prefixed by “#”. Now I have 20 H1’s and SEO manager gives me headaches

Why don’t you just edit the post? (e.g. by changing **`#`** to **`-`** which will render as a proper list)

---

<div class="post-metadata">

### Author: ![wil93](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wil93/32/121264_2.png) [@wil93](https://meta.discourse.org/u/wil93)
#### Post date: [August 17, 2016, 5:34pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/10 "2016-08-17T17:34:39Z")

</div>

> [@alfuken](#):
>
> Google doesn’t like when there’s more than 1 H1 per page

On a slightly unrelated note, what your SEO manager said [appears to be a misconception](http://webdesign.tutsplus.com/articles/the-truth-about-multiple-h1-tags-in-the-html5-era--webdesign-16824) or, at least, not true anymore starting from HTML5.

---

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 6:17pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/11 "2016-08-17T18:17:01Z")

</div>

Are you seriously offering to edit each and every post that accidentally contains HTML?..

The task is not limited to just hashtags, the task is to disable Markdown completely, or to either simply strip any HTML except line breaks from the post content.

---

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 6:18pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/12 "2016-08-17T18:18:28Z")

</div>

Well, unfortunately she trusts the consulting company (SearchMetrics) more than she trusts me, and higher management is on her side. I’m not in a position to choose.

---

<div class="post-metadata">

### Author: ![wil93](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wil93/32/121264_2.png) [@wil93](https://meta.discourse.org/u/wil93)
#### Post date: [August 17, 2016, 6:27pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/13 "2016-08-17T18:27:22Z")

</div>

> [@alfuken](#):
>
> Are you seriously offering to edit each and every post that accidentally contains HTML?..

It’s much easier than effectively forking discourse (thus missing updates, possibly exposing your forum to security risks).

Moreover, it’s not like you will encounter this issue every day of the year: I have had a discourse instance running for almost 2 years and I never felt this was an issue 😕

Or what about reddit? They use markdown as well.

My impression is that you don’t like Markdown, and that’s OK, but consider the fact that maybe your users would like it 🙂

---

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 6:35pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/14 "2016-08-17T18:35:52Z")

</div>

Well, we’re effectively already forked it, as we had to remove infinite scrolling and add normal pagination (took 2 days to implement, while some Dev on this forum stated that this would take 2 months); customised the url structure to fit the needs (which was actually PITA, as someone not really smart obviously hardcoded all the routes in JS as string instead of using EmberJS routing mechanism. Had to search and replace tons of strings); hacked the routes to handle more than 2 levels of categories; So… Yeah, I’d say “forking discourse” is not a big issue right now. 😉

And no, you’re wrong, I like Markdown, but this is a task from higher in the hierarchy and not something to discuss.

PS. I’m starting to think that picking Discourse was a bad idea after all - it’s really PITA when it comes to customisation and tweaking.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 17, 2016, 6:43pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/15 "2016-08-17T18:43:09Z")

</div>

You want a Forum system, with:

- No infinite scrolling
- Different routing scheme
- Different category nesting
- No markdown

After searching a bit you picked Discourse.

I guess the problem isn’t on Discourse.

---

<div class="post-metadata">

### Author: ![wil93](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wil93/32/121264_2.png) [@wil93](https://meta.discourse.org/u/wil93)
#### Post date: [August 17, 2016, 6:44pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/16 "2016-08-17T18:44:03Z")

</div>

> [@alfuken](#):
>
> PS. I’m starting to think that picking Discourse was a bad idea after all

Well, after all, _“Discourse is built for the next 10 years of the Internet”_, and you guys changed it to become a classic 1990 forum with pagination, so… yeah, the higher hierarchy could have thought that out a bit more 😄

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [August 17, 2016, 7:19pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/17 "2016-08-17T19:19:57Z")

</div>

At this point, you seem to have a Discourse like forum that is not Discourse.

But I expect after you’ve done all that, you’d find that it shouldn’t be too hard to leave markdown in place, but disable the parts that produce H1, H2, etc, tags.

---

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 7:27pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/18 "2016-08-17T19:27:30Z")

</div>

Not me, mate. Not me. I just need an easy way to disable markdown. Though it seems like there’s no easy way to do it. Oh well.

---

<div class="post-metadata">

### Author: ![alfuken](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alfuken/32/121595_2.png) [@alfuken](https://meta.discourse.org/u/alfuken)
#### Post date: [August 17, 2016, 7:36pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/19 "2016-08-17T19:36:20Z")

</div>

Infinite scrolling is not “the next 10 years”. It’s not evolution either. This feature is quite debateable even as of now. It was first implemented years and years ago and it still hasn’t received a widespread use just because it’s not what people need. It’s just another “meh”. And it works crappy for websites who make their income with ads.

Also, Discourse is effing seriously slow on mobile devices, especially on Android. And that’s the result of falling into a hype of EmberJS. Too much JS. Too much AJAX. Too heavy. If it’s “modern”, doesn’t mean it’s better. But it’s a subject of another discussion.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 17, 2016, 7:38pm UTC](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727/20 "2016-08-17T19:38:10Z")

</div>

> [@alfuken](#):
>
> Infinite scrolling

> [@alfuken](#):
>
> still hasn’t received a widespread use

> [@alfuken](#):
>
> it works crappy for websites who make their income with ads

Facebook ticks all the boxes I think.

[Next page](https://meta.discourse.org/t/how-do-i-disable-markdown-completely/48727.md?page=2)
