zjp-CN / term-rustdoc

[WIP] A TUI for Rust docs that aims to improve the UX on tree view and generic code.
17 stars 1 forks source link

Filter out empty lines after hidden lines in Rust codeblocks #4

Open zjp-CN opened 8 months ago

zjp-CN commented 8 months ago

Current in term-rustdoc

Same as the HTML on https://docs.rs/actix/0.13.0/actix/sync/struct.SyncContext.html

/// ```
/// use actix::prelude::*;
///
/// # struct Fibonacci(pub u32);
///
/// # impl Message for Fibonacci {
/// #     type Result = Result<u64, ()>;
/// # }
///
/// struct SyncActor;
///
/// impl Actor for SyncActor {
///     // It's important to note that you use "SyncContext" here instead of "Context".
///     type Context = SyncContext<Self>;
/// }
///
/// # fn main() {
/// # }
/// ```