mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-05 20:02:47 +01:00
- Added NVIDIA Inception branding.
- Updated the blogs
This commit is contained in:
@@ -44,6 +44,19 @@ function styleBody(html) {
|
||||
/<ul>/g,
|
||||
'<ul class="list-disc list-inside text-gray-300 leading-relaxed mb-5 space-y-2">'
|
||||
)
|
||||
.replace(
|
||||
/<table>/g,
|
||||
'<div class="overflow-x-auto mb-6"><table class="w-full text-left text-sm text-gray-300 border-collapse">'
|
||||
)
|
||||
.replace(/<\/table>/g, '</table></div>')
|
||||
.replace(
|
||||
/<th(?=[ >])[^>]*>/g,
|
||||
'<th class="border-b border-gray-600 px-3 py-2 font-semibold text-white">'
|
||||
)
|
||||
.replace(
|
||||
/<td(?=[ >])[^>]*>/g,
|
||||
'<td class="border-b border-gray-800 px-3 py-2 align-top">'
|
||||
)
|
||||
.replace(
|
||||
/<a href="http/g,
|
||||
`<a rel="noopener" class="${LINK_CLASS}" href="http`
|
||||
|
||||
Reference in New Issue
Block a user