adjust scxale added more tags
This commit is contained in:
@ -97,8 +97,32 @@ def markdown2html(markdown, basepath, re_render, resources, viewport_width, font
|
||||
'h5': 1.2,
|
||||
'h6': 1.1,
|
||||
'blockquote': 1.0,
|
||||
'code': 0.9, # Assuming code is slightly smaller
|
||||
# Add other tags as needed, e.g., 'td', 'th' for tables
|
||||
'td': 1.0,
|
||||
'th': 1.0,
|
||||
'dt': 1.0,
|
||||
'dd': 1.0,
|
||||
'table': 1.0,
|
||||
'tr': 1.0,
|
||||
'ul': 1.0,
|
||||
'ol': 1.0,
|
||||
'code': 1.0,
|
||||
'pre': 1.0,
|
||||
'a': 1.0,
|
||||
'strong': 1.0,
|
||||
'em': 1.0,
|
||||
's': 1.0,
|
||||
'sup': 1.0,
|
||||
'sub': 1.0,
|
||||
'mark': 1.0,
|
||||
'small': 1.0,
|
||||
'big': 1.0,
|
||||
'kbd': 1.0,
|
||||
'samp': 1.0,
|
||||
'var': 1.0,
|
||||
'cite': 1.0,
|
||||
'dfn': 1.0,
|
||||
'abbr': 1.0,
|
||||
'acronym': 1.0,
|
||||
}
|
||||
|
||||
# Find all tags that we want to scale
|
||||
|
||||
Reference in New Issue
Block a user