mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 19:58:40 +00:00
Implement \verb (#614)
* Implement \verb * Implement @gagern's comments * \verb: look up characters one at a time. * Add screenshot test for \verb * Add error tests for \verb * Include space symbol in typewriter font, and fix single quotes This is based on https://github.com/Khan/MathJax-dev/pull/2 which hasn't been accepted yet at the time this commit is made. * Add \verb* tests * \verb should use Typewriter-Regular font! * Switch \verb to use text mode and no-break space. * Screenshot update with Typewriter-Regular * \verb test: fix *, add commas to make spaces clear * Fix spaces and style handling * Implement @kevinbarabash's comments * Make error clearly an assertion failure * verb screenshot for Chrome
This commit is contained in:
committed by
Kevin Barabash
parent
c47655cc0e
commit
f10ea4cbeb
@@ -986,11 +986,12 @@ $map{cmtt10} = {
|
||||
0x15 => [0x306,-525,0], # \breve (combining)
|
||||
0x16 => [0x304,-525,0], # \bar (combining)
|
||||
0x17 => [0x30A,-525,0], # ring above (combining)
|
||||
0x20 => 0x2423, # graphic representation of space
|
||||
|
||||
[0x21,0x7F] => 0x21,
|
||||
|
||||
0x27 => 2018, # left quote
|
||||
0x60 => 2019, # right quote
|
||||
0x27 => 0x2018, # left quote
|
||||
0x60 => 0x2019, # right quote
|
||||
0x5E => [0x302,-525,0], # \hat (combining)
|
||||
0x7E => [0x303,-525,0], # \tilde (combining)
|
||||
0x7F => [0x308,-525,0], # \ddot (combining)
|
||||
|
Reference in New Issue
Block a user