Enhance lab sheets with action item styling and installation guide

- Added a new Action Items Guide to provide styling classes for highlighting important sections in lab sheets.
- Introduced an INSTALL.md file detailing Jekyll installation and testing procedures.
- Implemented action item and warning item styles in the main stylesheet for better visual distinction.
- Updated lab content to utilize new action item classes for clarity and emphasis on critical instructions.
- Enhanced JavaScript functionality to process custom highlight syntax in lab content.
This commit is contained in:
Z. Cliffe Schreuders
2025-09-16 00:42:46 +01:00
parent 6bb2fe9ec7
commit 4788da7beb
11 changed files with 785 additions and 37 deletions

View File

@@ -102,4 +102,13 @@ document.addEventListener('DOMContentLoaded', function() {
}
}
});
// Process ==highlight== syntax
document.addEventListener('DOMContentLoaded', function() {
const contentBody = document.querySelector('.lab-list');
if (contentBody) {
// Replace ==text== with <mark>text</mark>
contentBody.innerHTML = contentBody.innerHTML.replace(/==([^=]+)==/g, '<mark>$1</mark>');
}
});
</script>