re-add code blocks
This commit is contained in:
@@ -7,6 +7,8 @@ pub async fn eval(ctx: Context<'_>,
|
||||
#[rest]
|
||||
expr: String) -> Result<(), Error>
|
||||
{
|
||||
let expr = expr.strip_prefix("```").and_then(|s| s.strip_suffix("```")).unwrap_or(&expr);
|
||||
|
||||
let values = lamm::evaluate(Cursor::new(expr));
|
||||
|
||||
let output = values.fold(Ok(String::new()), |acc, v| {
|
||||
|
||||
Reference in New Issue
Block a user