You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: templates/README.markdown
+1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ This is the source of New Presentation. It was generated with [`revealing`](http
6
6
7
7
* Images are resized for the web using [`graphicsmagick`](http://www.graphicsmagick.org/)
8
8
*`#include` and other [`gpp`](https://logological.org/gpp) features allow organizing the sources of complex presentations
9
+
* Fenced code blocks marked as `ditaa` will be converted to SVG
9
10
* Files in the `headers` folder are included verbatim in the HTML `<head>` section
10
11
* MathJax is included and configured to render SVG. To use a specific version, set the environment variable `MATH_JAX_VERSION` to one of of the versions provided by [CDNJS](https://cdnjs.com/libraries/mathjax).
11
12
* reveal.js is downloaded and unzipped at build time. Set the environment variable `REVEAL_JS_VERSION` to customize which version to use (must be one of the [released versions](https://github.com/hakimel/reveal.js/releases)). If `REVEAL_JS_DIR` is set, the files from this directory are used.
<p>As you can see, ditaa renders that quite pretty. It’s turned into an embedded SVG.</p>
28
+
<p>The <code>scale</code> attribute can be set so that the generated image is scaled by this factor. This requires the use of <ahref="https://pandoc.org/MANUAL.html#extension-fenced_code_attributes">fenced code attributes</a>, where the class is written as <code>.ditaa</code>.</p>
29
+
<p>This is the same image as before, but scaled by factor <code>1.5</code>:</p>
Copy file name to clipboardexpand all lines: tools/pandoc-ditaa-inline/examples/example.markdown
+9-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,15 @@ The following graph shows two boxes, connected:
6
6
+-----+ +-----+
7
7
```
8
8
9
-
As you can see, ditaa renders that quite pretty. It's turned into an embedded SVG.
9
+
The `scale` attribute can be set so that the generated image is scaled by this factor. This requires the use of [fenced code attributes](https://pandoc.org/MANUAL.html#extension-fenced_code_attributes), where the class is written as `.ditaa`.
10
+
11
+
This is the same image as before, but scaled by factor `1.5`:
0 commit comments