Skip to content

Commit

Permalink
Merge pull request #337 from lucperkins/adapters-send-sync
Browse files Browse the repository at this point in the history
Make adapters Send + Sync
  • Loading branch information
charlottia authored Aug 29, 2023
2 parents 72b5209 + 2690607 commit 477bf1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::io::{self, Write};
use crate::nodes::Sourcepos;

/// Implement this adapter for creating a plugin for custom syntax highlighting of codefence blocks.
pub trait SyntaxHighlighterAdapter {
pub trait SyntaxHighlighterAdapter: Send + Sync {
/// Generates a syntax highlighted HTML output.
///
/// lang: Name of the programming language (the info string of the codefence block after the initial "```" part).
Expand Down Expand Up @@ -57,7 +57,7 @@ pub struct HeadingMeta {
/// method defines what's rendered prior the AST content of the heading while the `exit` method
/// defines what's rendered after it. Both methods provide access to a [`HeadingMeta`] struct and
/// leave the AST content of the heading unchanged.
pub trait HeadingAdapter {
pub trait HeadingAdapter: Send + Sync {
/// Render the opening tag.
fn enter(
&self,
Expand Down

0 comments on commit 477bf1b

Please sign in to comment.