* refactor: move CodeEditor to shared components and remove circular dependency * feat: add code editor to problem editor * fix: typo * feat: add save function to raw olx editor and add highlighting * feat: simplify and add tests to edit problem view * feat: add tests to problem edit view * fix: update raw editor tests * fix: code editor tests * fix: package-lock * fix: lint
37 lines
616 B
JavaScript
37 lines
616 B
JavaScript
// HTML symbols to unescape in a Alphanumeric value : Literal mapping.
|
||
const alphanumericMap = {
|
||
cent: '¢',
|
||
pound: '£',
|
||
sect: '§',
|
||
copy: '©',
|
||
laquo: '«',
|
||
raquo: '»',
|
||
reg: '®',
|
||
deg: '°',
|
||
plusmn: '±',
|
||
para: '¶',
|
||
middot: '·',
|
||
frac12: '½',
|
||
mdash: '—',
|
||
ndash: '–',
|
||
lsquo: '‘',
|
||
rsquo: '’',
|
||
sbquo: '‚',
|
||
rdquo: '”',
|
||
ldquo: '“',
|
||
dagger: '†',
|
||
Dagger: '‡',
|
||
bull: '•',
|
||
hellip: '…',
|
||
prime: '′',
|
||
Prime: '″',
|
||
euro: '€',
|
||
trade: '™',
|
||
asymp: '≈',
|
||
ne: '≠',
|
||
le: '≤',
|
||
ge: '≥',
|
||
quot: '"',
|
||
};
|
||
export default alphanumericMap;
|