User Tools

Site Tools





Although there is a markdown plugin available in Typesetter, it is not very pratical. Neither is the markdown plugin from CKEditor. So we can use Pandoc to generate the HTML source.

Under Cygwin, given you have the markdown text in the clipboard, you can launch following command to put the corresponding HTML in the clipboard:

| iconv -f ms-ansi -t utf8\
| pandoc -f markdown -t html\
| iconv -f utf8 -t ms-ansi\
| putclip

Source code highlighting


For the source code to properly be displayed in Typesetter, launch the desired conversion with the -s option, and update the Layout setting from Typesetter with the content between the <section> tag (without the tag).

Extraneous line break

When using Pandoc generated HTML in Typesetter, there may be extraneous line breaks. To avoid this, add following line to the layout setting:

.sourceCode .cf::before, .sourceCode .cf::after { display: none; }
computing/tools/typesetter.txt · Last modified: Thu Mar 1 11:42:01 2018 (01/03/18) by Claude SIMON