question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable markup inside certain tags?

See original GitHub issue

Just been integrating this great plug-in into a project, but I’ve come up against a problem… How can I disable mark-up within code sections? For example, typing `_this_` immediately removes the <code> and returns to standard italic.

It would be cool to be able to disable all markup within <code></code> ( or other sections too ) so I could have <code>_this_</code> in the HTML and it appear like this _this_

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
c0ldst0ragecommented, Oct 22, 2021

Cool! This would be SUPER helpful. ;o)

1reaction
c0ldst0ragecommented, Oct 22, 2021

Hi… Thanks for checking this for me! 😮) There is definitely an issue, and maybe it’s only with italic ( <em> ) ?

To see what I mean, please go here: https://jsfiddle.net/buzrcnLv/ Firstly, create <code>test</code> ( using either </> button and typing test, or just type `test` ). Next, add _ to the start of test so you get <code>_test</code> Finally, add _ to the other side of _test and immediately, you go from <code>_test</code> to <em>test</em>.

The reason this is a problem is because, I am trying to type things like… <code>$test_variable_colour=36</code> and I cannot because it changes _variable_ to <em>variable</em>. ;o)

You can see me typing here in this video: https://www.dropbox.com/s/xj09i7yjiw2fs9b/JSFiddle_code_italic_problem.mp4?dl=0

Any idea what I can do to fix this? Kindest regards! Tim.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable browser markup in contenteditable - Stack Overflow
I want to disable browsers from adding anything other than HTML tags in my contenteditable div. Unequivocally, no ifs, ands, buts or candied...
Read more >
How to disable elements in the markup. - MSDN - Microsoft
I want to disable certain elements in the markup in the aspx file, ... Pass the tag name you want to create to...
Read more >
Remove all style, scripts, and HTML tags using BeautifulSoup
In this article, we are going to discuss how to remove all style, scripts, and HTML tags using beautiful soap. Required Modules: bs4:...
Read more >
HTML attribute: disabled - HTML: HyperText Markup Language
The Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with the form.
Read more >
HTML regex (regex remove html tags) - UI Bakery
HTML regex (regex remove html tags). HTML stands for HyperText Markup Language and is used to display information in the browser. HTML regular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found