Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions js/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { generateMermaidFigures } from "https://logius-standaarden.github.io/pub

async function initializeHighlightJSYaml() {
//this is the function you call in 'preProcess', to load the highlighter
const worker = await new Promise(resolve => {
require(["core/worker"], ({ worker }) => resolve(worker));
});
const worker = await document.respec.worker;

const action = "highlight-load-lang-self-registration";
const langURL = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/yaml.min.js";
const lang = "yaml";
Expand All @@ -31,9 +30,7 @@ async function fetchLinterConfiguration() {

async function highlightLinterCode(config, document) {
//this is the function you call in 'postProcess', to load the highlighter
const worker = await new Promise(resolve => {
require(["core/worker"], ({ worker }) => resolve(worker));
});
const worker = await document.respec.worker;

const action = "highlight";
const code = linterConfiguration;
Expand Down Expand Up @@ -104,7 +101,7 @@ loadRespecWithConfiguration({
previousPublishDate: "2025-08-27",
previousPublishVersion: "2.1.0",
shortName: "adr",
specStatus: "VV",
specStatus: "DEF",
specType: "ST",
pluralize: true,

Expand Down
Loading