# 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:
```sh
fimdoc input.md output.txt
```
Run with stdin and an output file:
```sh
Run with an input file and stdout:
```sh
Run with stdin and stdout:
```sh
#### Command line options:
FimDoc has the following command line options, only one of which can be provided at a time.
```txt
-q | --quiet >> Ignores and skips over unsupported markdown syntax.
```
Here are some examples of their use:
```sh
fimdoc -q input.md output.txt
```
```sh
### Library use:
Run the parse function with the markdown string and WarningType enum.
```rust
let md = "# Hello World!".to_string();
let warn = WarningType::Quiet;
let bbcode = parse(md, &warn);
println!("{bbcode}");
```
Would produce:
```txt
[h1]
Hello World!
[/h1]
```