From b21858860496fbe0229278ded54a840ad15fddb2 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Tue, 1 Sep 2026 12:14:24 -0500 Subject: all of the things --- .new_assignment_prompt.md | 109 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 .new_assignment_prompt.md (limited to '.new_assignment_prompt.md') 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 `` 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 + + + + + +
+
+
    +
  1. S-1-5-21-3504108470-3217663453-2648748712-500
  2. +
  3. 4
  4. +
  5. -R
  6. +
  7. 10.0.14393
  8. +
+
+ + +``` + +--- + +### 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 + + + + 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
    • +
    • Authentication
    • +
    +
  2. +
  3. +

    Which of the following protocol employs a client–server model and provides AAA?

    +
      +
    • SMTP
    • +
    • HTTPS
    • +
    • IPsec
    • +
    • RADIUS
    • +
    +
  4. +
+
+ + +``` -- cgit v1.3.1