How do you use the markdown Code Tag in MSWord importer

10 views
Skip to first unread message

Adam Johnston

unread,
Feb 11, 2019, 11:26:12 PM2/11/19
to leanpub

How do you use the markdown Code Tag in MSWord importer:

example:

Code:
1. Indent each line 4 spaces.
2. 8 tildes above and below the code block.
3. <<(code/ch1-01.cs)
with titles: <<My Title is Here
4. backticks. Console.WriteLine("FOOBAR");

Override default syntax: {lang="csharp"}
Sans syntax highlighting: {lang="txt"}
Line numbers: {linenos=on} {linenos=off}
    or {line-numbers=on,starting-line-number=32}
Part of a file: {crop-start-line=15,crop-end-line=30}

Another way to do a title: {title="Example 1 - My Title", lang=csharp}
Reply all
Reply to author
Forward
0 new messages