27 lines
369 B
Markdown
27 lines
369 B
Markdown
|
```
|
||
|
% pandoc -f latex -t native
|
||
|
\newtoggle{ebook}
|
||
|
\toggletrue{ebook}
|
||
|
\iftoggle{ebook}{
|
||
|
ebook
|
||
|
}%
|
||
|
{
|
||
|
not ebook
|
||
|
}%
|
||
|
more
|
||
|
|
||
|
\togglefalse{ebook}
|
||
|
\iftoggle{ebook}{%
|
||
|
ebook
|
||
|
}{
|
||
|
not ebook
|
||
|
}%
|
||
|
more
|
||
|
|
||
|
hello \iftoggle{ebook}{ebook}{noebook}
|
||
|
^D
|
||
|
[Para [Str "ebook",SoftBreak,Str "more"]
|
||
|
,Para [Str "not",Space,Str "ebook",SoftBreak,Str "more"]
|
||
|
,Para [Str "hello",Space,Str "noebook"]]
|
||
|
```
|