@@ -295,6 +295,17 @@ are supported. For example, to use the github theme
295295md2gslides slides.md --style github
296296```
297297
298+ You can also apply additional style changes to the entire block, such as changing
299+ the font size:
300+
301+ <pre >
302+ ### Hello World
303+
304+ ```javascript
305+ console.log('Hello world');
306+ ```{style="font-size: 36pt"}
307+ </pre >
308+
298309### Tables
299310
300311Tables are supported via
@@ -316,13 +327,59 @@ Dogs | 75 million
316327Birds | 16 million
317328</pre >
318329
330+ ### Local images
331+
332+ Images referencing local paths temporarily uploaded and hosted to [ file.io] ( https://file.io )
333+
334+ ### Image rasterization
335+
336+ Slides can also include generated images, using ` $$$ ` fenced blocks
337+ for the data. Currently supported generated images are math expression (TeX
338+ and MathML) as well as SVG
339+
340+ Using TeX:
341+
342+ <pre >
343+ # How about some math?
344+
345+ $$$ math
346+ \cos (2\theta) = \cos^2 \theta - \sin^2 \theta
347+ $$$
348+ </pre >
349+
350+ SVG
351+
352+ <pre >
353+ # Or some SVG?
354+
355+ $$$ svg
356+ < ; svg xmlns="http://www.w3.org/2000/svg"
357+ xmlns:xlink="http://www.w3.org/1999/xlink"
358+ viewBox="0 0 48 48">
359+ < ; defs>
360+ < ; path id="a" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"/>
361+ < ; /defs>
362+ < ; clipPath id="b">
363+ < ; use xlink:href="#a" overflow="visible"/>
364+ < ; /clipPath><path clip-path =" url(#b) " fill =" #FBBC05 " d =" M0 37V11l17 13z " />
365+ < ; path clip-path="url(#b)" fill="#EA4335" d="M0 11l17 13 7-6.1L48 14V0H0z"/>
366+ < ; path clip-path="url(#b)" fill="#34A853" d="M0 37l30-23 7.9 1L48 0v48H0z"/>
367+ < ; path clip-path="url(#b)" fill="#4285F4" d="M48 48L17 24l-4-3 35-10z"/>
368+ < ; /svg>
369+ $$$
370+ </pre >
371+
372+ Like local images, generated images are temporarily served via file.io.
373+
374+ Pull requests for other image generators (e.g. mermaid, chartjs, etc.) are welcome!
375+
319376## Reading from standard input
320377
321378You can also pipe markdown into the tool by using ` STDIN ` as the file name.
322379
323380## Contributing
324381
325- With the exception of ` /bin/md2gslides.js ` , ES6 is used throughout and compiled
382+ With the exception of ` /bin/md2gslides.js ` , TypeScript is used throughout and compiled
326383with [ Babel] ( https://babeljs.io/ ) . [ Mocha] ( https://mochajs.org/ ) and [ Chai] ( http://chaijs.com/ )
327384are used for testing.
328385
@@ -338,6 +395,12 @@ To run unit tests:
338395npm run test
339396```
340397
398+ To lint/format tests:
399+
400+ ``` sh
401+ npm run lint
402+ ```
403+
341404See [ CONTRIBUTING] ( CONTRIBUTING.md ) for additional terms.
342405
343406## License
0 commit comments