allow HTML <mark> tags
See original GitHub issueI love Prism, but I’m a little confused about why it is mutually exclusive with my own highlighting. Let’s say I want to highlight an annotation in Java:
<pre ><code class="language-java">package com.example;
public class Point
{
…
<mark>@Deprecated</mark> //NOTE: annotation
public double calculateSlope(final int x2, final int y2)
If I use just plain HTML5, the <mark>
tag makes a nice highlighted section, e.g. with a yellow background. But Prism makes it as if I had never even used the <mark>
tag. Why can’t I use both? It would sure be useful to use Prism, yet maintain the ability to highlight certain passages.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
HTML mark Tag - W3Schools
Definition and Usage. The <mark> tag defines text that should be marked or highlighted. ... The <mark> tag also supports the Global Attributes...
Read more >The Mark Text element - HTML: HyperText Markup Language
The HTML element represents text which is marked or highlighted for ... Tag omission, None, both the starting and ending tag are mandatory....
Read more >HTML: <mark> tag - TechOnTheNet
The HTML <mark> tag is used to mark or highlight text that is of special interest or relevance in an HTML document. Browsers...
Read more >Highlight text with HTML <mark> tag | SamanthaMing.com
Need to highlight a text, use the HTML5 mark tag. This is a more semantic option that will easily style your highlighted text...
Read more ><mark> HTML Tag »
The <mark> element is used to highlight text inside of another element such as a paragraph, list, or table. Text to which the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just wanted to say that I’ve been using
<mark>
for a while in Prism, and it’s working like a dream! So useful. Thanks for the effort done to get this working.Oh, I see—that’s a pull request. Someone had indicated a commit ID, so I thought that was the code. I haven’t worked with pull requests on GitHub. So the fix was just to remove the whole thing. OK, if that works.
Sorry for static, and thanks for pointing me in the right direction.