Skip to content

Commit

Permalink
Add support for 'pre_code' entity type in quote generation
Browse files Browse the repository at this point in the history
  • Loading branch information
LyoSU committed Jun 16, 2024
1 parent 511135f commit b4611c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/quote-generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit b4611c3

Please sign in to comment.