-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from kivikakk/xml-sourcepos
xml, sourcepos
- Loading branch information
Showing
41 changed files
with
3,517 additions
and
1,823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#![no_main] | ||
|
||
use libfuzzer_sys::fuzz_target; | ||
|
||
use comrak::{markdown_to_html, ComrakExtensionOptions, ComrakOptions, ComrakRenderOptions}; | ||
|
||
// Note that what I'm targetting here isn't exactly the same | ||
// as --gfm, but rather an approximation of what cmark-gfm | ||
// options are routinely used by Commonmarker users. | ||
|
||
fuzz_target!(|s: &str| { | ||
markdown_to_html( | ||
s, | ||
&ComrakOptions { | ||
extension: ComrakExtensionOptions { | ||
strikethrough: true, | ||
tagfilter: true, | ||
table: true, | ||
autolink: true, | ||
..Default::default() | ||
}, | ||
parse: Default::default(), | ||
render: ComrakRenderOptions { | ||
hardbreaks: true, | ||
github_pre_lang: true, | ||
unsafe_: true, | ||
sourcepos: true, | ||
..Default::default() | ||
}, | ||
}, | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.