Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ NEW: General improvements #10

Merged
merged 30 commits into from Nov 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5645452
Copy the fixtures to the dist directory
rowanc1 Nov 17, 2020
411f6dc
Simple css
rowanc1 Nov 18, 2020
dcb8eeb
Getting started content (that is also testing!)
rowanc1 Nov 18, 2020
6484f76
Block Comments
rowanc1 Nov 18, 2020
b267396
Example admonitions
rowanc1 Nov 18, 2020
32e43f8
Add comments and admonitions to the spec
rowanc1 Nov 18, 2020
ae290db
Addmonition styles reorder
rowanc1 Nov 18, 2020
9515dbc
Reorder admonition styles
rowanc1 Nov 18, 2020
4b9a647
Update welcome doc
rowanc1 Nov 18, 2020
f7535bf
Block breaks
rowanc1 Nov 18, 2020
f434c7b
Update numbering, getting ready for figures and code
rowanc1 Nov 18, 2020
f1d7385
References, figures and math
rowanc1 Nov 20, 2020
b09c550
Move myst.ts to main directory
rowanc1 Nov 21, 2020
3a8a2da
Allow `flat` in array rules
rowanc1 Nov 21, 2020
af9aa7b
Rename fixtures
rowanc1 Nov 21, 2020
df819c8
Split out roles into multiple files
rowanc1 Nov 21, 2020
8b2c234
Unused test files
rowanc1 Nov 21, 2020
2f0f51b
Update directives to use utils
rowanc1 Nov 21, 2020
8c8e640
HTML templating and escaping in one place
rowanc1 Nov 21, 2020
a77e71b
Bring math into one way of rendering
rowanc1 Nov 21, 2020
fb6d27d
Import roles fix
rowanc1 Nov 21, 2020
346c875
Math role test
rowanc1 Nov 21, 2020
b3e7023
Simplify math renderers
rowanc1 Nov 21, 2020
fa30dc6
Refactor directives
rowanc1 Nov 22, 2020
cee4861
Fix naming
rowanc1 Nov 22, 2020
4ed353a
Fix up types and ordering
rowanc1 Nov 22, 2020
c94b3e5
Refactoring
rowanc1 Nov 22, 2020
a28614e
Rename to parent
rowanc1 Nov 22, 2020
40a04ec
Better regexp
rowanc1 Nov 22, 2020
2f55503
Numbering in one place
rowanc1 Nov 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions fixtures/blocks.break.md
@@ -0,0 +1,20 @@
A simple block break:
.
+++
.
<!-- Block Break -->
.

A block break with metadata:
.
+++ {"meta": "data"}
.
<!-- Block Break -->
.

A block break with malformed metadata:
.
+++ {"meta": data}
.
<!-- Block Break -->
.
28 changes: 28 additions & 0 deletions fixtures/blocks.comment.md
@@ -0,0 +1,28 @@
A simple comment:
.
% A comment
.
<!-- A comment -->
.

A simple comment between two paragraphs:
.
Something
% A comment
Something else
.
<p>Something</p>
<!-- A comment -->
<p>Something else</p>
.

A should sanitize html
.
Something
% A comment --> <script>
Something else
.
<p>Something</p>
<!-- A comment --&gt; &lt;script&gt; -->
<p>Something else</p>
.
2 changes: 1 addition & 1 deletion fixtures/blocks.target.md
Expand Up @@ -31,7 +31,7 @@ Reference to a non-existent ID:
.
<span id="ref-my_id"></span>
<h1>My Header</h1>
<p><span style="background-color:red;" title="No reference 'my_ID' found.">Not There</span></p>
<p><span class="error" title="The reference 'my_ID' was not found.">Reference 'my_ID' not found.</span></p>
.

Header with ID and a markdown link:
Expand Down
193 changes: 193 additions & 0 deletions fixtures/directives.admonitions.md
@@ -0,0 +1,193 @@
Admonition:
.
```{admonition} This is a title
An example of an admonition with a _title_.
```
.
<aside class="callout note">
<header>
This is a title
</header>
<p>An example of an admonition with a <em>title</em>.</p>
</aside>
.

Note:
.
```{note}
An example of an admonition with a _title_.
```
.
<aside class="callout note">
<header>
Note
</header>
<p>An example of an admonition with a <em>title</em>.</p>
</aside>
.

Note on split lines:
.
```{note} An example
of an admonition on two lines.
```
.
<aside class="callout note">
<header>
Note
</header>
<p>An example of an admonition on two lines.</p>
</aside>
.

[FIX] Note on a single line [See #154](https://github.com/executablebooks/MyST-Parser/issues/154)
.
```{danger} An example of an admonition on a single line.
```
.
<aside class="callout danger">
<header>
Danger
</header>
</aside>
.

Admonition:
.
```{admonition} This is a title
An example of a general `admonition` with a custom _title_.
```
.
<aside class="callout note">
<header>
This is a title
</header>
<p>An example of a general <code>admonition</code> with a custom <em>title</em>.</p>
</aside>
.

`attention` admonition:
.
```{attention}
An example of a attention admonition.
```
.
<aside class="callout attention">
<header>
Attention
</header>
<p>An example of a attention admonition.</p>
</aside>
.

`caution` admonition:
.
```{caution}
An example of a caution admonition.
```
.
<aside class="callout caution">
<header>
Caution
</header>
<p>An example of a caution admonition.</p>
</aside>
.

`danger` admonition:
.
```{danger}
An example of a danger admonition.
```
.
<aside class="callout danger">
<header>
Danger
</header>
<p>An example of a danger admonition.</p>
</aside>
.

`error` admonition:
.
```{error}
An example of an error admonition.
```
.
<aside class="callout error">
<header>
Error
</header>
<p>An example of an error admonition.</p>
</aside>
.

`hint` admonition:
.
```{hint}
An example of a hint admonition.
```
.
<aside class="callout hint">
<header>
Hint
</header>
<p>An example of a hint admonition.</p>
</aside>
.

`important` admonition:
.
```{important}
An example of an important admonition.
```
.
<aside class="callout important">
<header>
Important
</header>
<p>An example of an important admonition.</p>
</aside>
.

`note` admonition:
.
```{note}
An example of a note admonition.
```
.
<aside class="callout note">
<header>
Note
</header>
<p>An example of a note admonition.</p>
</aside>
.

`tip` admonition:
.
```{tip}
An example of a tip admonition.
```
.
<aside class="callout tip">
<header>
Tip
</header>
<p>An example of a tip admonition.</p>
</aside>
.

`warning` admonition:
.
```{warning}
An example of a warning admonition.
```
.
<aside class="callout warning">
<header>
Warning
</header>
<p>An example of a warning admonition.</p>
</aside>
.
45 changes: 45 additions & 0 deletions fixtures/directives.figure.md
@@ -0,0 +1,45 @@
Simple figure:
.
```{figure} https://jupyterbook.org/_static/logo.png
The Jupyter Book Logo!
```
.
<figure id="fig-1" class="numbered">
<img src="https://jupyterbook.org/_static/logo.png">
<figcaption number="1">
<p>The Jupyter Book Logo!</p>
</figcaption>
</figure>
.

Named figure with a caption in a paragraph:
.
```{figure} https://jupyterbook.org/_static/logo.png
:name: test1

The Jupyter Book Logo!
```
.
<figure id="fig-test1" class="numbered">
<img src="https://jupyterbook.org/_static/logo.png">
<figcaption number="1">

<p>The Jupyter Book Logo!</p>
</figcaption>
</figure>
.

Named figure with a caption, no space between options:
.
```{figure} https://jupyterbook.org/_static/logo.png
:name: test2
The Jupyter Book Logo!
```
.
<figure id="fig-test2" class="numbered">
<img src="https://jupyterbook.org/_static/logo.png">
<figcaption number="1">
<p>The Jupyter Book Logo!</p>
</figcaption>
</figure>
.
41 changes: 0 additions & 41 deletions fixtures/directives.known.md

This file was deleted.

File renamed without changes.
47 changes: 0 additions & 47 deletions fixtures/markdown.math.md

This file was deleted.