rust-analyzer/crates
bors[bot] 50225fe630
Merge #11869
11869: fix: code blocks with tilde also works like code block r=Veykril a=moreal

The `rustdoc` uses the `pulldown_cmark` package to parse *doc_comment* and the package also treat triple `~` characters also as code block fences. So when we run `cargo doc`, they will be placed also.

<img width="965" alt="image" src="https://user-images.githubusercontent.com/26626194/161208072-5a09a209-57fc-4a52-b190-b0a9be9ffcd6.png">

But `rust-analyzer` doesn't support it so it doesn't have any injected code highlights and any `Run doctest` hint. This pull request tries to allow also them. 🙇🏻‍♂️ 

Before:

<img width="224" alt="image" src="https://user-images.githubusercontent.com/26626194/161207405-b1d6cfda-82b1-4f60-8e42-c51d0ed98f38.png">

After:

<img width="161" alt="image" src="https://user-images.githubusercontent.com/26626194/161207693-8e39997c-9ca6-4e69-8c65-e9b70899f7db.png">


Co-authored-by: Lee Dogeon <dev.moreal@gmail.com>
2022-04-01 12:40:51 +00:00
..
base_db internal: Refactor FamousDefs builtin crate search 2022-03-30 22:23:54 +02:00
cfg minor: Bump dependencies 2022-03-22 17:42:24 +01:00
flycheck minor: Bump dependencies 2022-03-22 17:42:24 +01:00
hir internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
hir_def internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
hir_expand Type mismatch when last expression is noreturn asm 2022-03-30 19:07:02 +05:30
hir_ty internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide Merge #11869 2022-04-01 12:40:51 +00:00
ide_assists create generate is, as, try_into group 2022-03-31 21:22:08 -06:00
ide_completion internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide_db internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide_diagnostics internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide_ssr internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
limit Use compare_exchange_weak in limit::Limit::check 2022-01-28 18:19:35 +03:00
mbe minor: Bump dependencies 2022-03-22 17:42:24 +01:00
parser Remove parser restriction on varargs positioning 2022-03-31 16:03:27 +02:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc_macro_api minor: Bump dependencies 2022-03-22 17:42:24 +01:00
proc_macro_srv fix comment 2022-03-25 15:30:52 +01:00
proc_macro_test minor: Bump dependencies 2022-03-22 17:42:24 +01:00
profile minor: Bump dependencies 2022-03-22 17:42:24 +01:00
project_model internal: Refactor FamousDefs builtin crate search 2022-03-30 22:23:54 +02:00
rust-analyzer Merge #11869 2022-04-01 12:40:51 +00:00
sourcegen Bump xshell and fix dist 2022-03-17 08:53:33 +02:00
stdx minor: Bump dependencies 2022-03-22 17:42:24 +01:00
syntax minor: Bump dependencies 2022-03-22 17:42:24 +01:00
test_utils Merge #11805 2022-03-23 20:20:09 +00:00
text_edit minor: Bump dependencies 2022-03-22 17:42:24 +01:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt minor: Bump dependencies 2022-03-22 17:42:24 +01:00
vfs minor: Bump dependencies 2022-03-22 17:42:24 +01:00
vfs-notify minor: Bump dependencies 2022-03-22 17:42:24 +01:00