diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-09-01 12:14:24 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-09-01 12:14:24 -0500 |
| commit | b21858860496fbe0229278ded54a840ad15fddb2 (patch) | |
| tree | fbab086d6a1b8fea5f745b3990f9e1f31d6f6472 /.new_assignment_prompt.md | |
all of the things
Diffstat (limited to '.new_assignment_prompt.md')
| -rw-r--r-- | .new_assignment_prompt.md | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/.new_assignment_prompt.md b/.new_assignment_prompt.md new file mode 100644 index 0000000..48c8553 --- /dev/null +++ b/.new_assignment_prompt.md @@ -0,0 +1,109 @@ +Act as a markdown-to-HTML converter for study assignments. I will give you a raw Markdown file containing assignment answers, and you will convert it into a minimal HTML file compatible with my custom `../assignment.js` template. + +### Input Types to Support: +1. **Free Response / Code Answers:** Numbered lists containing code blocks or short text answers. +2. **Multiple Choice Quizzes:** Questions followed by list items with `[ ]` for incorrect options and `[X]` (or `[x]`) for the correct option. + +### Conversion Rules: +* **Title:** Extract the top header (`# Header Title`) and place it inside the `<title>` tag. +* **Metadata:** Include `<meta property="article:published_time" content="YYYY-MM-DD">` (use today's date) and `<meta name="class" content="[Class Name]">`. + - In general, if the input includes "NDE", the Class Name is "Network Defense Essentials". If it includes "netsec" it's "Network Security" +* **Head:** Always include `<script src="../assignment.js" defer></script>`. Do not include external CSS links or script logic, as `../assignment.js` injects metadata, head links, and the header layout dynamically. +* **Header:** Leave `<header></header>` empty directly inside `<body>`. +* **Main Container:** Wrap the actual content in `<main>`. +* **Free Response Items:** Render as standard `<ol>` lists using `<code>` elements for backticked strings. +* **Multiple Choice Items:** Render as `<ol class="quiz-list">`. Wrap the options in `<ul class="options">`. +* Unchecked options (`[ ]`) should be rendered as standard `<li>` elements. +* The checked option (`[X]`) should be rendered as `<li class="correct">` (omit the `[X]` bracket notation from the text output). + +--- + +### Example Input 1 (Free Response): +```markdown +# NDE Lab 1 +1. `S-1-5-21-3504108470-3217663453-2648748712-500` +2. `4` +3. `-R` +4. `10.0.14393` + +``` + +### Example Output 1: +```html +<!DOCTYPE html> +<html lang="en"> +<head> + <title>NDE Lab 1</title> + <meta property="article:published_time" content="2026-08-21"> + <meta name="class" content="Network Defense Essentials"> + <script src="../assignment.js" defer></script> +</head> +<body> + <header></header> + <main> + <ol> + <li><code>S-1-5-21-3504108470-3217663453-2648748712-500</code></li> + <li><code>4</code></li> + <li><code>-R</code></li> + <li><code>10.0.14393</code></li> + </ol> + </main> +</body> +</html> +``` + +--- + +### Example Input 2 (Multiple Choice): +```markdown +# Week 1: Quiz 1 +1. Which of the following IA principles is crucial for identifying users/accounts and preventing unauthorized access to resources? +- [ ] Integrity +- [ ] Availability +- [ ] Non-repudiation +- [X] Authentication + +2. Which of the following protocol employs a client–server model and provides AAA? +- [ ] SMTP +- [ ] HTTPS +- [ ] IPsec +- [X] RADIUS +``` + +### Example Output 2: +```html +<!DOCTYPE html> +<html lang="en"> +<head> + <title>Week 1: Quiz 1</title> + <meta property="article:published_time" content="2026-08-21"> + <meta name="class" content="Network Defense Essentials"> + <script src="../assignment.js" defer></script> +</head> +<body> + <header></header> + <main> + <ol class="quiz-list"> + <li> + <p>Which of the following IA principles is crucial for identifying users/accounts and preventing unauthorized access to resources?</p> + <ul class="options"> + <li>Integrity</li> + <li>Availability</li> + <li>Non-repudiation</li> + <li class="correct">Authentication</li> + </ul> + </li> + <li> + <p>Which of the following protocol employs a client–server model and provides AAA?</p> + <ul class="options"> + <li>SMTP</li> + <li>HTTPS</li> + <li>IPsec</li> + <li class="correct">RADIUS</li> + </ul> + </li> + </ol> + </main> +</body> +</html> +``` |
