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.

\html* commands: "raw" input forbids %

See original GitHub issue

so I finally got around to checking out the new html* commands. I was pretty excited about it until I got stuck with the following problem. say one uses htmlStyle. many css commands involve the symbol “%”. but this creates an error. for example,

\htmlStyle{background-color:rgb(255, 99, 71);}{x^2+1}

will work nicely but the equivalent syntax

\htmlStyle{background-color:hsl(9, 100%, 64%);}{x^2+1}

will throw a KaTeX parse error: Unexpected end of input in raw at position 12: \htmlStyle{b̲a̲c̲k̲g̲r̲o̲u̲n̲d̲-̲c̲o̲l̲o̲r̲:̲h̲s̲l̲(̲9̲,̲ ̲1̲0̲0̲%, 64%);}{x^2+1…

edited: removed suggested fixes, I actually forgot how KaTeX input types work. will think about it some more

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinbarabashcommented, Aug 1, 2020

@bonkboykz 0.12.0 has been released. See https://github.com/KaTeX/KaTeX/releases/tag/v0.12.0 for details.

0reactions
bonkboykzcommented, May 29, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Html.raw(), doesn't compile the code returned from jQuery
I am trying to have multi-coloured textarea on my page. So basically I am planing have one textarea input and one <p> object....
Read more >
HTML Standard
1 Introduction; 2 Common infrastructure; 3 Semantics, structure, and APIs of HTML documents; 4 The elements of HTML; 5 Microdata; 6 User interaction ......
Read more >
raw_input not working - Codecademy
Okay, I was just trying to make it input a word from the user. I had: word = raw_input("Please type a word.") The...
Read more >
HTML Viewer - Code Beautify
Online HTML Viewer, HTML Beautifier, HTML Formatter, HTML Editor to Test output - Convert HTML Strings to a Friendly Readable Format, Beautify.
Read more >
Try it Yourself - W3Schools Tryit Editor
DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> ​ <h1>My First Heading</h1> <p>My first paragraph.</p> ​ </body> </html>
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