mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-26 06:01:49 +02:00
Use plain text for \ce in select
This commit is contained in:
parent
75c849cf98
commit
31163a427e
@ -208,8 +208,13 @@ draft: false
|
||||
return sets.has(value) ? sets.get(value) : value.toString()
|
||||
break;
|
||||
case "molecule":
|
||||
const mhchemCE=/^\\ce\{.*\}$/
|
||||
return mhchemCE.test(value) ? "\\("+value.toString()+"\\)" : value.toString()
|
||||
const mhchemCE=/^\\ce\{(.*)\}$/
|
||||
const m=value.match(mhchemCE)
|
||||
if (m) {
|
||||
return m[1]
|
||||
} else {
|
||||
return value
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return value.toString()
|
||||
|
Loading…
Reference in New Issue
Block a user