diff options
author | ThunderMikey <mikecyj25@gmail.com> | 2018-03-21 18:33:46 +0000 |
---|---|---|
committer | ps-george <george.punter15@imperial.ac.uk> | 2018-03-21 18:33:46 +0000 |
commit | f7b1a99be3e0c15a191f964081f2835496865242 (patch) | |
tree | 72a37ef54ee3af777b6719e83a597bcbd5ca3ab1 /examples | |
parent | 8f1e45fbf838ba7a559a407fdc3fe591f53e4f2d (diff) | |
download | FMark-f7b1a99be3e0c15a191f964081f2835496865242.tar.gz FMark-f7b1a99be3e0c15a191f964081f2835496865242.zip |
ToC on HTMLGen side (#138)
* add Reference InlineElement type
* use clearer head and body gen structure
* fix top level program
This is a temporary fix. Therefore, no table of contents will be displayed
* complete match in MarkdownGen
* make comments on Footnote
* TOCGen without options
* delete option argument for genHTML
* fixing typos; still not passing tests
* correct expected test result
* fix inline footnote and citation issues
* fix small type bug
* fixing merge commit. still need to solve missing footnote tests
* building js
* fix test case
* add comment to reference test
* generalize reference searching
* add comment to MatchTOC
* add comment for header
* make header work in the first line
* add TOC tests
* change variable name
* add punctuation symbol to error msg
* surround error msg with []
This allows better visual in rendered HTML
* splitup the big reference test
* footnote, citation bug fix
append currentLine so that anything before footnote and citation are not thrown away
* build JS
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example.html | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/examples/example.html b/examples/example.html new file mode 100644 index 0000000..dfd3adc --- /dev/null +++ b/examples/example.html @@ -0,0 +1,85 @@ +<!DOCTYPE html> + +<head> + <meta name="viewport" content="width=device-width"> + <title></title> +</head> + +<body> + <h1 id="FMark_Example0">FMark Example</h1> + <h2 id="Table_of_contents1">Table of contents</h2> + <ol> + <li> + <a href="#FMark_Example0">FMark Example</a> + </li> + <ol> + <li> + <a href="#Table_of_contents1">Table of contents</a> + </li> + <li> + <a href="#Macros2">Macros</a> + </li> + <li> + <a href="#Including_files3">Including files</a> + </li> + <li> + <a href="#Spreadsheet_functionality4">Spreadsheet functionality</a> + </li> + <li> + <a href="#LateX_maths5">LateX maths</a> + </li> + </ol> + </ol> + <h2 id="Macros2">Macros</h2> + <p> + <br> + </p> + <table> + <thead> + <tr> + <th>default</th> + <th>table</th> + <th>contents</th> + </tr> + </thead> + <tbody> + <tr> + <td>hi</td> + <td>my</td> + <td>name</td> + </tr> + <tr> + <td>is</td> + <td>geroge</td> + <td>hi</td> + </tr> + </tbody> + </table> + <h2 id="Including_files3">Including files</h2> + <h2 id="Spreadsheet_functionality4">Spreadsheet functionality</h2> + <table> + <thead> + <tr> + <th>This</th> + <th>is</th> + <th>FMark</th> + </tr> + </thead> + <tbody> + <tr> + <td>5</td> + <td>3</td> + <td>8</td> + </tr> + <tr> + <td>2</td> + <td>3</td> + <td>5.33333333333333</td> + </tr> + </tbody> + </table> + <h2 id="LateX_maths5">LateX maths</h2> + <p>$$2* \begin{pmatrix} x_{00} & x_{01} & x_{01} \newline x_{10} & x_{11} & x_{11} \newline x_{20} & x_{21} & x_{21} \end{pmatrix}$$</p> + <script + type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML"></script> +</body>
\ No newline at end of file |