prost icon indicating copy to clipboard operation
prost copied to clipboard

square brackets are wrongly escaped in code blocks

Open xxchan opened this issue 3 years ago • 3 comments

// ```rust
// let a = vec![1];
// ```
message Test{}

Will become

/// ```rust
/// let a = vec!\[1\];
/// ```
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Test {
}

xxchan avatar Jul 18 '22 01:07 xxchan

Good catch, would be good to fix this and write a test.

LucioFranco avatar Jul 18 '22 14:07 LucioFranco

Has anyone worked on this yet? I'm happy to help.

macroexpansion avatar Jul 29 '22 18:07 macroexpansion

@trasua go for it!

LucioFranco avatar Jul 29 '22 18:07 LucioFranco