# Plans to support Markdownit Ruler for BBCode?

**URL:** <https://meta.discourse.org/t/plans-to-support-markdownit-ruler-for-bbcode/283517>\
**Category:** Development\
**Created:** [October 26, 2023, 10:37am UTC](https://meta.discourse.org/t/plans-to-support-markdownit-ruler-for-bbcode/283517 "2023-10-26T10:37:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)\
**Post date:** [October 26, 2023, 10:37am UTC](https://meta.discourse.org/t/plans-to-support-markdownit-ruler-for-bbcode/283517/1 "2023-10-26T10:37:57Z")

</div>

My use case is to disable/enable bbcode rules when using the replace rule of bbcode.

```javascript
replace: function (state, tagInfo, content) {
  const source = state.push("my_token", "div", 0);
  try {
    md.block.bbcode.ruler.disable("ruleName")
    source.children = state.md.parse(content, {});
  } finally {
    md.block.bbcode.ruler.enable("ruleName")
  }
  return true
}

```

I noticed that the TODO comment here was from a long time ago, any plans to implement it?

> <https://github.com/discourse/discourse/blob/d40530545607f307b613167a0659e05dd0bda3dc/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js#L77-L110>

---

_[View the full topic](https://meta.discourse.org/t/plans-to-support-markdownit-ruler-for-bbcode/283517)._
