Skip to content

Commit

Permalink
chore: expose ComrakHighlightWrapperAdapter (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats authored Nov 16, 2024
1 parent 04a7df0 commit daf3433
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/html/comrak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ impl comrak::adapters::HeadingAdapter for ComrakHeadingAdapter {
}
}

struct ComrakHighlightWrapperAdapter(Option<Arc<dyn SyntaxHighlighterAdapter>>);
pub struct ComrakHighlightWrapperAdapter(
Option<Arc<dyn SyntaxHighlighterAdapter>>,
);

impl SyntaxHighlighterAdapter for ComrakHighlightWrapperAdapter {
fn write_highlighted(
Expand Down

0 comments on commit daf3433

Please sign in to comment.