-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement HTMLRenderer methods (#106)
Also add minimal page render
- Loading branch information
1 parent
97ac07d
commit fb83d74
Showing
6 changed files
with
245 additions
and
20 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
44 changes: 44 additions & 0 deletions
44
tests/test_renderers/test_html/test_minimal_html_page.html
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,44 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Standalone HTML</title> | ||
<style> | ||
div.myst-front-matter { | ||
border: 1px solid gray; | ||
} | ||
div.myst-directive { | ||
background: lightgreen; | ||
} | ||
hr.myst-block-break { | ||
border-top:1px dotted black; | ||
} | ||
span.myst-role { | ||
background: lightgreen; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<div class="myst-front-matter"><pre><code class="language-yaml">a: 1 | ||
</code></pre></div> | ||
<p><a class="myst-target" href="#title-target" title="Permalink to here">(title-target)=</a></p> | ||
<h1>title</h1> | ||
<p>Abc $$a=1$$ <span class="myst-role"><code>{role}content</code></span> then more text</p> | ||
<!-- myst-block-data my break --> | ||
<hr class="myst-block-break" /> | ||
<div class="myst-directive"> | ||
<pre><code>{directive} args | ||
:option: 1 | ||
content | ||
</code></pre></span> | ||
</div> | ||
<pre><code class="language-python">def func(a): | ||
print("{}".format(a)) | ||
</code></pre> | ||
<!-- a comment --> | ||
<p><a href="#title-target">link to target</a></p> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML"></script> | ||
|
||
</body> | ||
</html> |