From b4611c37c0dfc2473ba8b6ff3cbdc94e53be060c Mon Sep 17 00:00:00 2001 From: Yuri Ly Date: Sun, 16 Jun 2024 15:09:47 +0300 Subject: [PATCH] Add support for 'pre_code' entity type in quote generation --- utils/quote-generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/quote-generate.js b/utils/quote-generate.js index 32830b6..7ee2587 100644 --- a/utils/quote-generate.js +++ b/utils/quote-generate.js @@ -328,7 +328,7 @@ class QuoteGenerate { const entity = entities[entityIndex] const style = [] - if (['pre', 'code'].includes(entity.type)) { + if (['pre', 'code', 'pre_code'].includes(entity.type)) { style.push('monospace') } else if ( ['mention', 'text_mention', 'hashtag', 'email', 'phone_number', 'bot_command', 'url', 'text_link']