mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
fix: add namespace for svg, making output XHTML+SVG+MathML compatible (#2725)
* fix: add namespace for svg * Remove unneeded xmlns:xlink Co-authored-by: Kevin Barabash <kevinb@khanacademy.org> Co-authored-by: Erik Demaine <edemaine@mit.edu>
This commit is contained in:
@@ -505,7 +505,7 @@ export class SvgNode implements VirtualNode {
|
||||
}
|
||||
|
||||
toMarkup(): string {
|
||||
let markup = "<svg";
|
||||
let markup = `<svg xmlns="http://www.w3.org/2000/svg"`;
|
||||
|
||||
// Apply attributes
|
||||
for (const attr in this.attributes) {
|
||||
|
Reference in New Issue
Block a user