mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 05:28:41 +00:00
Export ES6 module in fontMetricsData.js (#1072)
* Export ES6 module in fontMetricsData.js Use ES6 modules export(`export default`) * Generate fontMetricsData.js Export ES6 module in fontMetricsData.js(2382c66)
This commit is contained in:
committed by
Kevin Barabash
parent
2a2742453b
commit
732f2a84cc
@@ -10,7 +10,7 @@ if len(sys.argv) > 1:
|
||||
props.append('width')
|
||||
|
||||
data = json.load(sys.stdin)
|
||||
sep = "module.exports = {\n "
|
||||
sep = "export default {\n "
|
||||
for font in sorted(data):
|
||||
sys.stdout.write(sep + json.dumps(font))
|
||||
sep = ": {\n "
|
||||
|
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
"AMS-Regular": {
|
||||
"65": [0, 0.68889, 0, 0, 0.72222],
|
||||
"66": [0, 0.68889, 0, 0, 0.66667],
|
||||
|
Reference in New Issue
Block a user