CSS Code Snippets Don't Allow Embedded HTML

NEW
Unassigned

Status

Mozilla Developer Network
Wiki pages
--
minor
3 years ago
3 years ago

People

(Reporter: jezdez, Unassigned)

Tracking

Details

(Whiteboard: [specification][type:bug])

(Reporter)

Description

3 years ago
What did you do?
================


I don't know if this is the right place to post the problem (basically if this is a problem with Kuma or the documentation), but I saw it in a number of places so I figured I'd post about it here.

It looks like when trying to format a code snippet of CSS, actually displaying it on the page causes all the HTML to be escaped. Meanwhile in the editor, it formats the selection properly. I think it becomes pretty obvious with an example, so here's one: https://developer.mozilla.org/en-US/docs/Web/CSS/animation#Syntax


What happened?
==============
 

What should have happened?
==========================
 

Is there anything else we should know?
======================================
Original ticket: https://github.com/mozilla/kuma/issues/2699
This is a limitation of prism.js which gets run on the page but not on in the wiki editor. 

In Bug 1102508 we are trying to find a solution specifically for the syntax boxes, (it would not apply for all code snippets).

Updated

3 years ago
Severity: normal → minor
Component: General → Wiki pages
You need to log in before you can comment on or make changes to this bug.