logseq / mldoc

Another Emacs Org-mode and Markdown parser.
GNU Affero General Public License v3.0
236 stars 21 forks source link

Can't parse fence code in list items #85

Closed tiensonqin closed 3 years ago

tiensonqin commented 3 years ago
                                                              - ```rust
                                fn do_something(f: Foo) {
                                  println!("{}", f.x);
                                  // f is dropped here
                              }

                              fn main() {
                                  let mut foo = Foo { x: 42 };
                                  let f = &mut foo;

                                  //FAILURE:
                                  do_something(foo) // would fail because
                                  // foo cannot be moved while mutably borrowed, and passing will move reference

                                  //FAILURE:
                                  foo.x = 13; //would fail here because
                                  // foo is not modifiable while mutably borrowed
                              ```