Get the real language for src blocks from the org source.

This commit is contained in:
Tom Alexander
2023-12-21 12:07:36 -05:00
parent b538750287
commit 5654c40d03
3 changed files with 7 additions and 4 deletions

View File

@@ -11,10 +11,12 @@ use super::macros::render;
#[serde(rename = "src_block")]
pub(crate) struct RenderSrcBlock {
lines: Vec<String>,
language: Option<String>,
}
render!(RenderSrcBlock, ISrcBlock, original, _render_context, {
Ok(RenderSrcBlock {
lines: original.lines.clone(),
language: original.language.clone(),
})
});