mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-11 09:23:36 +01:00
- Added NVIDIA Inception branding.
- Updated the blogs
This commit is contained in:
1 parent
27dfe79636
commit
8c99f3ab5f
5 files changed
+357
-15
No files matched your search
@@ -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