Skip to content

Commit 05b6b32

Browse files
committed
Fix markdown link parsing in course outline and move Assignment 3 release to Week 3
- Add parseMarkdownLinks() function to index.html to render markdown links in topic bullets (fixes raw [text](url) showing instead of clickable links) - Move Assignment 3 release from Week 4 Friday (Jan 30) to Week 3 Friday (Jan 23) in both slides/README.md and admin/syllabus.md
1 parent f76ed8f commit 05b6b32

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

admin/syllabus.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ We strive to create an inclusive learning environment where all students feel su
136136
|------|-------|--------|-------------|
137137
| 1 | Jan 5--9 | Introduction, Pattern Matching, ELIZA | [Assignment 1](../assignments/assignment-1/) released (Jan 9) |
138138
| 2 | Jan 12--16 | Data Cleaning, Tokenization, Text Classification | [Assignment 2](../assignments/assignment-2/) released (Jan 16) |
139-
| 3 | Jan 19--23 | POS Tagging, Vibe Coding, Classical Embeddings | [Assignment 1](../assignments/assignment-1/) due (Jan 19) |
140-
| 4 | Jan 26--30 | Word Embeddings, Contextual Embeddings, Dimensionality Reduction | [Assignment 2](../assignments/assignment-2/) due (Jan 26), [Assignment 3](../assignments/assignment-3/) released (Jan 30), [Assignment 4](../assignments/assignment-4/) released (Jan 30) |
139+
| 3 | Jan 19--23 | POS Tagging, Vibe Coding, Classical Embeddings | [Assignment 1](../assignments/assignment-1/) due (Jan 19), [Assignment 3](../assignments/assignment-3/) released (Jan 23) |
140+
| 4 | Jan 26--30 | Word Embeddings, Contextual Embeddings, Dimensionality Reduction | [Assignment 2](../assignments/assignment-2/) due (Jan 26), [Assignment 4](../assignments/assignment-4/) released (Jan 30) |
141141
| 5 | Feb 2--6 | Attention Mechanisms, Transformer Architecture | [Assignment 3](../assignments/assignment-3/) due (Feb 2), [Assignment 5](../assignments/assignment-5/) released (Feb 6) |
142142
| 6 | Feb 9--13 | BERT Deep Dive, Encoder Models | [Assignment 4](../assignments/assignment-4/) due (Feb 9), [Final Project](../assignments/final-project/) released (Feb 13) |
143143
| 7 | Feb 16--20 | GPT Architecture, Scaling Up, Implementation | [Assignment 5](../assignments/assignment-5/) due (Feb 16) |
@@ -173,7 +173,7 @@ We strive to create an inclusive learning environment where all students feel su
173173
| Mon Jan 19 | -- | Martin Luther King Jr. Day (No Class) | -- | **[Assignment 1](../assignments/assignment-1/) Due (Jan 19, 11:59 PM EST)** |
174174
| Wed Jan 21 | Lecture 8 | POS Tagging & Sentiment Analysis | [HTML](../slides/week3/lecture8.html), [PDF](../slides/week3/lecture8.pdf) | [Linzen et al. (2016)](https://aclanthology.org/Q16-1037/) |
175175
| Thu Jan 22 | Lecture 9 | Vibe Coding Tips & Tricks | [HTML](../slides/week3/lecture9.html), [PDF](../slides/week3/lecture9.pdf) | [OpenCode](https://opencode.ai), [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode), [spec-kit](https://github.com/github/spec-kit), [GitHub Copilot for Students](https://github.com/education/students), [Google Gemini for Students](https://gemini.google/students/) |
176-
| Fri Jan 23 | Lecture 10 | Classical Embeddings (LSA, LDA) | [HTML](../slides/week3/lecture10.html), [PDF](../slides/week3/lecture10.pdf) | [Deerwester et al. (1990)](http://wordvec.colorado.edu/papers/Deerwester_1990.pdf), [Blei et al. (2003)](https://www.jmlr.org/papers/volume3/blei03a/blei03a.pdf) |
176+
| Fri Jan 23 | Lecture 10 | Classical Embeddings (LSA, LDA) | [HTML](../slides/week3/lecture10.html), [PDF](../slides/week3/lecture10.pdf) | [Deerwester et al. (1990)](http://wordvec.colorado.edu/papers/Deerwester_1990.pdf), [Blei et al. (2003)](https://www.jmlr.org/papers/volume3/blei03a/blei03a.pdf), **[Assignment 3](../assignments/assignment-3/) Released** |
177177

178178
### Week 4: Word Embeddings & Modern Methods (January 26--30)
179179

@@ -182,7 +182,7 @@ We strive to create an inclusive learning environment where all students feel su
182182
| Mon Jan 26 | Lecture 11 | Word Embeddings (Word2Vec, GloVe, FastText) | [HTML](../slides/week4/lecture11.html), [PDF](../slides/week4/lecture11.pdf) | [Mikolov et al. (2013)](https://arxiv.org/abs/1301.3781), [Pennington et al. (2014)](https://aclanthology.org/D14-1162/), [Bojanowski et al. (2017)](https://arxiv.org/abs/1607.04606), **[Assignment 2](../assignments/assignment-2/) Due (Jan 26, 11:59 PM EST)** |
183183
| Wed Jan 28 | Lecture 12 | Contextual Embeddings | [HTML](../slides/week4/lecture12.html), [PDF](../slides/week4/lecture12.pdf) | [Peters et al. (2018)](https://aclanthology.org/N18-1202/), [Cer et al. (2018)](https://arxiv.org/abs/1803.11175) |
184184
| Thu Jan 29 | Lecture 13 | Dimensionality Reduction | [HTML](../slides/week4/lecture13.html), [PDF](../slides/week4/lecture13.pdf) | [McInnes & Healy (2018)](https://arxiv.org/pdf/1802.03426) |
185-
| Fri Jan 30 | Lecture 14 | Cognitive Models of Semantic Representation | [HTML](../slides/week4/lecture14.html), [PDF](../slides/week4/lecture14.pdf) | [Anderson et al. (2016)](https://www.jneurosci.org/content/36/45/11444), **[Assignment 3](../assignments/assignment-3/) Released**, **[Assignment 4](../assignments/assignment-4/) Released** |
185+
| Fri Jan 30 | Lecture 14 | Cognitive Models of Semantic Representation | [HTML](../slides/week4/lecture14.html), [PDF](../slides/week4/lecture14.pdf) | [Anderson et al. (2016)](https://www.jneurosci.org/content/36/45/11444), **[Assignment 4](../assignments/assignment-4/) Released** |
186186

187187
### Week 5: Transformers & Attention Mechanisms (February 2--6)
188188

index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ <h1>Models of Language and Communication</h1>
975975
if (lecture.topics && lecture.topics.length > 0) {
976976
html += '<div class="lecture-topics"><ul>';
977977
lecture.topics.forEach(topic => {
978-
html += '<li>' + escapeHtml(topic) + '</li>';
978+
html += '<li>' + parseMarkdownLinks(topic) + '</li>';
979979
});
980980
html += '</ul></div>';
981981
}
@@ -1125,6 +1125,19 @@ <h1>Models of Language and Communication</h1>
11251125
return div.innerHTML;
11261126
}
11271127

1128+
function parseMarkdownLinks(text) {
1129+
// First escape HTML to prevent XSS, then convert markdown links to anchor tags
1130+
if (!text) return '';
1131+
// Escape HTML special chars manually to preserve markdown link syntax
1132+
let escaped = text
1133+
.replace(/&/g, '&amp;')
1134+
.replace(/</g, '&lt;')
1135+
.replace(/>/g, '&gt;')
1136+
.replace(/"/g, '&quot;');
1137+
// Now convert markdown links [text](url) to <a> tags
1138+
return escaped.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>');
1139+
}
1140+
11281141
// ============================================
11291142
// INTERACTION HANDLERS
11301143
// ============================================

slides/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Explore concepts hands-on with our interactive web demos! Each demo runs directl
122122
- Latent Dirichlet Allocation (LDA) for topic modeling
123123
- Reading: [Deerwester et al. (1990)](http://wordvec.colorado.edu/papers/Deerwester_1990.pdf) - LSA
124124
- Reading: [Blei et al. (2003)](https://www.jmlr.org/papers/volume3/blei03a/blei03a.pdf) - LDA
125+
- **Assignment 3 Released:** [Wikipedia Embeddings](https://contextlab.github.io/llm-course/assignments/assignment-3/) (Due: Feb 2, 11:59 PM EST)
125126
- 🎮 **Try it:** [Topic Modeling](https://contextlab.github.io/llm-course/demos/topic-modeling/)
126127
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week3/lecture10.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week3/lecture10.html)
127128

@@ -157,7 +158,6 @@ Explore concepts hands-on with our interactive web demos! Each demo runs directl
157158

158159
**Friday (Lecture 14):** Cognitive Models of Semantic Representation
159160
- Reading: [Anderson et al. (2016)](https://www.jneurosci.org/content/36/45/11444)
160-
- **Assignment 3 Released:** [Wikipedia Embeddings](https://contextlab.github.io/llm-course/assignments/assignment-3/) (Due: Feb 2, 11:59 PM EST)
161161
- **Assignment 4 Released:** [Customer Service Chatbot](https://contextlab.github.io/llm-course/assignments/assignment-4/) (Due: Feb 9, 11:59 PM EST)
162162
- 🎮 **Try it:** [Embeddings Comparison](https://contextlab.github.io/llm-course/demos/embeddings-comparison/)
163163
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week4/lecture14.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week4/lecture14.html)

0 commit comments

Comments
 (0)