Skip to content

Commit 4690b46

Browse files
committed
Add remark-video to serve media from public/videos in HTML5 markup
1 parent 72bede7 commit 4690b46

9 files changed

Lines changed: 356 additions & 191 deletions

File tree

‎_TODO.md‎

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -231,20 +231,6 @@ You can then opt-out of prefetching for individual links by setting data-astro-p
231231

232232
## Markdown
233233

234-
### Video embedding
235-
236-
### remark-video, also needs remark-directive
237-
238-
Embed videos in HTML5 markup that are in the `/public` folder
239-
240-
```markdown
241-
::video{src=/videos/sample-video-1.mp4}
242-
243-
:::video
244-
/videos/sample-video-1.mp4
245-
:::
246-
```
247-
248234
### remark-youtube
249235

250236
```markdown
@@ -320,10 +306,9 @@ export default defineConfig({
320306
})
321307
```
322308

323-
### TeX rendering using KaTeX for math symbols
309+
### rehype-mathjax and remark-math
324310

325-
- `rehype-katex`
326-
- `rehype-mathjax` and `remark-math`
311+
- `rehype-katex` is alternative but lacks accessibility
327312

328313
```math
329314
L = \frac{1}{2} \rho v^2 S C_L
@@ -332,30 +317,12 @@ L = \frac{1}{2} \rho v^2 S C_L
332317

333318
### Mermaid JavaScript based diagramming and charting tool
334319

335-
@TODO: uses ES Modules, needs Jest config adjusted. See note in spec file.
336-
337-
`@liradb2000/markdown-it-mermaid`
338-
339-
```typescript
340-
const markdownMermaidConfig = {
341-
startOnLoad: false,
342-
securityLevel: true,
343-
theme: 'default',
344-
flowchart: {
345-
htmlLabels: false,
346-
useMaxWidth: true,
347-
},
348-
dictionary: {
349-
token: 'mermaid',
350-
graph: 'graph',
351-
sequenceDiagram: 'sequenceDiagram',
352-
},
353-
// ...or any other options
354-
}
355-
356-
markdown.syntaxHighlight.excludeLangs
357-
Type: Array<string>
358-
Default: ['math']
320+
```mermaid
321+
graph TD
322+
A[Start] --> B{Is it working?}
323+
B -->|Yes| C[Great!]
324+
B -->|No| D[Debug]
325+
D --> B
359326
```
360327

361328
### Apache ECharts interactive charting and data visualization library for browser

0 commit comments

Comments
 (0)