Skip to content

Commit

Permalink
fix: decorate tables inside procedure blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
maxakuru committed Oct 13, 2023
1 parent 07b7947 commit 3cbe08f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,16 @@ function decorateSectionIds(main) {
});
}

/**
* decorate tables inside procedure sections
* @param {HTMLElement} main
*/
function decorateProcedureSections(main) {
main.querySelectorAll(':scope li > div.table').forEach((block) => {
decorateBlock(block);
});
}

/**
* Decorates the main element.
* @param {Element} main The main element
Expand All @@ -891,6 +901,7 @@ export async function decorateMain(main) {
decorateSectionIds(main);
decorateLandingSections(main);
decorateBlocks(main);
decorateProcedureSections(main);

window.history.scrollRestoration = 'manual';
}
Expand Down

0 comments on commit 3cbe08f

Please sign in to comment.