-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: correct font-sizes (again!) (#237)
* chore: fix font sizes * chore: simplify preflight * chore: run linter * Update Playwright Snapshots * fix: add proof styles * chore: update ui-tests * chore: run prettier * test: update test * Update Playwright Snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
518dc9a
commit 909a575
Showing
20 changed files
with
427 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-148 Bytes
(97%)
...run.spec.ts-snapshots/File-Run-View-Markdown-file-and-render-result-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+36 KB
...s/File-Run-files-directives-md-View-Markdown-file-and-render-result-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24 KB
...s/File-Run-files-typography-md-View-Markdown-file-and-render-result-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: Directives | ||
date: 2024-04-26 | ||
authors: | ||
- name: Angus Hollands | ||
affiliations: | ||
- 2i2c | ||
--- | ||
|
||
```{note} | ||
:class: dropdown | ||
This is MyST in a notebook rendered by `jupyterlab-myst`!! | ||
``` | ||
|
||
:::{pull-quote} | ||
We know what we are, but know not what we may be. | ||
::: | ||
|
||
They say the owl was a baker’s daughter. Lord, we know what we are, but know not what we may be. God be at your table. | ||
|
||
:::{prf:proof} | ||
:label: full-proof | ||
Let $z$ be any other point in $S$ and use the fact that $S$ is a linear subspace to deduce | ||
|
||
```{math} | ||
\| y - z \|^2 | ||
= \| (y - \hat y) + (\hat y - z) \|^2 | ||
= \| y - \hat y \|^2 + \| \hat y - z \|^2 | ||
``` | ||
|
||
Hence $\| y - z \| \geq \| y - \hat y \|$, which completes the proof. | ||
::: | ||
|
||
```{mermaid} | ||
flowchart LR | ||
A[Jupyter Notebook] --> C | ||
B[MyST Markdown] --> C | ||
C(mystmd) --> D{AST} | ||
D <--> E[LaTeX] | ||
E --> F[PDF] | ||
D --> G[Word] | ||
D --> H[React] | ||
D --> I[HTML] | ||
D <--> J[JATS] | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Typography | ||
|
||
## Subtitle! | ||
|
||
- Bullet | ||
- List | ||
1. Containing | ||
2. Some | ||
- Numbers | ||
|
||
A link https://google.com and an autolink <https://bbc.co.uk/news> and a custom link [to anywhere!](https://wikipedia.org) | ||
|
||
Term 1 | ||
: Definition | ||
|
||
Term 2 | ||
: Definition | ||
|
||
{kbd}`Ctrl` + {kbd}`Space` | ||
|
||
Fleas \ | ||
Adam \ | ||
Had 'em. | ||
|
||
By Strickland Gillilan | ||
|
||
H{sub}`2`O, and 4{sup}`th` of July | ||
|
||
Well {abbr}`MyST (Markedly Structured Text)` is cool! | ||
|
||
Foo [^a] and Bar [^b] | ||
|
||
[^a]: A footnote | ||
[^b]: Another footnote | ||
|
||
Foo [^c] and Bar [^d] | ||
|
||
[^c]: A footnote | ||
[^d]: Another footnote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-162 Bytes
(98%)
...pec.ts-snapshots/Notebook-Run-Run-Notebook-and-capture-cell-outputs-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30 KB
...un-notebooks-directives-ipynb-Run-Notebook-and-capture-cell-outputs-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.7 KB
...un-notebooks-typography-ipynb-Run-Notebook-and-capture-cell-outputs-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "ca08bb8d-dc60-494e-a63e-5a9a7d4be7bd", | ||
"metadata": {}, | ||
"source": [ | ||
"---\n", | ||
"title: Directives\n", | ||
"date: 2024-04-26\n", | ||
"authors:\n", | ||
" - name: Angus Hollands\n", | ||
" affiliations:\n", | ||
" - 2i2c\n", | ||
"---" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "d79b49b1-d263-4759-bfce-699f88f8c778", | ||
"metadata": { | ||
"tags": [] | ||
}, | ||
"source": [ | ||
"```{note}\n", | ||
":class: dropdown\n", | ||
"\n", | ||
"This is MyST in a notebook rendered by `jupyterlab-myst`!!\n", | ||
"```" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "aaaab279-c281-4f20-8852-dcaa08c0d07c", | ||
"metadata": {}, | ||
"source": [ | ||
":::{pull-quote}\n", | ||
"We know what we are, but know not what we may be.\n", | ||
":::\n", | ||
"\n", | ||
"They say the owl was a baker’s daughter. Lord, we know what we are, but know not what we may be. God be at your table." | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "c2113213-77a9-4ffc-aec8-fe686f85c4a8", | ||
"metadata": {}, | ||
"source": [ | ||
":::{prf:proof}\n", | ||
":label: full-proof\n", | ||
"Let $z$ be any other point in $S$ and use the fact that $S$ is a linear subspace to deduce\n", | ||
"\n", | ||
"```{math}\n", | ||
"\\| y - z \\|^2\n", | ||
"= \\| (y - \\hat y) + (\\hat y - z) \\|^2\n", | ||
"= \\| y - \\hat y \\|^2 + \\| \\hat y - z \\|^2\n", | ||
"```\n", | ||
"\n", | ||
"Hence $\\| y - z \\| \\geq \\| y - \\hat y \\|$, which completes the proof.\n", | ||
":::" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "950ad6fc-7ae3-4eaf-a497-03aa5817cf90", | ||
"metadata": {}, | ||
"source": [ | ||
"```{mermaid} \n", | ||
"flowchart LR\n", | ||
" A[Jupyter Notebook] --> C\n", | ||
" B[MyST Markdown] --> C\n", | ||
" C(mystmd) --> D{AST}\n", | ||
" D <--> E[LaTeX]\n", | ||
" E --> F[PDF]\n", | ||
" D --> G[Word]\n", | ||
" D --> H[React]\n", | ||
" D --> I[HTML]\n", | ||
" D <--> J[JATS]\n", | ||
"```" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.10.13" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
Oops, something went wrong.