diff options
| author | John MacFarlane <[email protected]> | 2022-08-23 11:52:10 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-08-23 11:52:10 -0700 |
| commit | 88affe15f4885c8cd0273b6e4036d0bf1115d104 (patch) | |
| tree | 407aa3392a653a9f83513dae1243fac4d917cfde | |
| parent | 8227d3801677d5d6192437e1cd920ea9e98f4782 (diff) | |
trypandoc: add hello_world example.
| -rw-r--r-- | trypandoc/index.html | 7 | ||||
| -rw-r--r-- | trypandoc/trypandoc.js | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/trypandoc/index.html b/trypandoc/index.html index 3e8ffb9cf..0021385c4 100644 --- a/trypandoc/index.html +++ b/trypandoc/index.html @@ -26,17 +26,16 @@ button#convert { vertical-align: bottom; } pre#command { margin-top: 1em; background-color: transparent; border: none; } a#permalink { margin-top: 6pt; margin-bottom: 6pt; display: block; } + #examples { margin-left: 6pt; } </style> </head> <body> <div class="container"> <div class="row"> <div id="title"> - <h1>Try <a href="https://pandoc.org">pandoc</a>!</h1> - </div> - <div id="examplediv"> + <h1>Try <a href="https://pandoc.org">pandoc</a>!</h1> <select id="examples"> - <option value="" selected disabled>Select an example</option> + <option value="hello_world" selected>Hello world</option> <option value="bibtex_to_csl_json">BibTeX to CSL JSON</option> <option value="markdown_to_man_with_citations">Markdown to man with citation</option> <option value="mediawiki_to_docx_with_equations">MediaWiki to docx with equations</option> diff --git a/trypandoc/trypandoc.js b/trypandoc/trypandoc.js index 64579df3b..60d695021 100644 --- a/trypandoc/trypandoc.js +++ b/trypandoc/trypandoc.js @@ -9,6 +9,13 @@ var params = { files: {} }; const examples = { + hello_world: + { text: '*Hello* world!', + from: 'markdown', + to: 'html5', + standalone: false, + citeproc: false, + files: {} }, bibtex_to_csl_json: { text: `@BOOK{Wurm2011-ho, title = "{Substanz und Qualität : Ein Beitrag zur Interpretation der |
