Add command line option for smart punctuation
@@ -61,6 +61,7 @@ pub fn main() -> std::io::Result<()> {
"enable GitHub-style strikethrough",
);
opts.optflag("L", "enable-tasklists", "enable GitHub-style task lists");
+ opts.optflag("P", "enable-smart-punctuation", "enable smart punctuation");
let matches = match opts.parse(&args[1..]) {
Ok(m) => m,
@@ -86,6 +87,9 @@ pub fn main() -> std::io::Result<()> {
if matches.opt_present("enable-tasklists") {
opts.insert(Options::ENABLE_TASKLISTS);
}
+ if matches.opt_present("enable-smart-punctuation") {
+ opts.insert(Options::ENABLE_SMART_PUNCTUATION);
+ }
let mut input = String::new();
io::stdin().lock().read_to_string(&mut input)?;
