diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-11-24 14:54:17 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-11-24 14:54:17 -0400 |
commit | 9e00e7770e5c3987b6a6a1437d79a38ff57115b9 (patch) | |
tree | a65a42647ff0ec5ff497cc7c85676fddbaaa32e3 /src/data/language.js | |
parent | 7f56163ad123b3ba8da431630d3da67f5444adb6 (diff) | |
parent | 45fba07af02d4f161cce494b683918bc76453b82 (diff) |
Merge branch 'contrib-tooltips' into preview
Diffstat (limited to 'src/data/language.js')
-rw-r--r-- | src/data/language.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/data/language.js b/src/data/language.js index 3fc14da7..6f774f27 100644 --- a/src/data/language.js +++ b/src/data/language.js @@ -7,15 +7,11 @@ import chokidar from 'chokidar'; import he from 'he'; // It stands for "HTML Entities", apparently. Cursed. import yaml from 'js-yaml'; -import T from '#things'; +import {externalLinkSpec} from '#external-links'; import {colors, logWarn} from '#cli'; - -import { - annotateError, - annotateErrorWithFile, - showAggregate, - withAggregate, -} from '#sugar'; +import {annotateError, annotateErrorWithFile, showAggregate, withAggregate} + from '#sugar'; +import T from '#things'; const {Language} = T; @@ -114,6 +110,8 @@ export function initializeLanguageObject() { language.escapeHTML = string => he.encode(string, {useNamedReferences: true}); + language.externalLinkSpec = externalLinkSpec; + return language; } |