Inspect markdown code fences to determine whether to apply syntax highlighting

This commit is contained in:
Leander Tentrup 2020-06-16 23:03:59 +02:00
parent 5d7974e5fb
commit 8ff91cf6b6
3 changed files with 22 additions and 4 deletions

View file

@ -329,9 +329,13 @@ impl Foo {
///
/// ```
///
/// ```
/// ```rust,no_run
/// let foobar = Foo::new().bar();
/// ```
///
/// ```sh
/// echo 1
/// ```
pub fn foo(&self) -> bool {
true
}