Friendship is Magic Document
Converts Markdown into FIMFiction BBCode.
Examples:
Here are examples for how to use the FimDoc executable, and the FimDoc parser library.
Command line use:
Run with an input and an output file:
Run with stdin and an output file:
|
Run with an input file and stdout:
|
Run with stdin and stdout:
| |
Command line options:
FimDoc has the following command line options, only one of which can be provided at a time.
-w | --warn (default) >> Warns the user in yellow on unsupported markdown syntax.
-f | --fail >> Errors in red before terminating on unsupported markdown syntax.
-q | --quiet >> Ignores and skips over unsupported markdown syntax.
Here are some examples of their use:
|
Library use:
Run the parse function with the markdown string and WarningType enum.
let md = "# Hello World!".to_string;
let warn = Quiet;
let bbcode = parse;
println!;
Would produce:
[h1]
Hello World!
[/h1]