Comments (1)
目前我使用的修复办法是在自定义 HTML 文件头的时候添加以下 JS 代码——
const __ = document;
function fixStylesheetParagraph ( ) {
__.querySelectorAll (
"body p:has(> :is(link[rel=stylesheet], style):only-child)"
).forEach (
ele => {
// move stylesheet imports to `<head>`
ele.remove ( );
__.head.append ( ele.firstChild );
}
);
}
document.addEventListener ( "DOMContentLoaded", ( ) => {
fixStylesheetParagraph ( );
} )
from vscode-markdown-preview-enhanced.
Related Issues (20)
- [BUG]
- [Feature Request] 有机化学方程式不支持 HOT 2
- [BUG] center title HOT 2
- [BUG] 无法显示 jfif 图片
- [BUG] Presentation refreshes when running code chunk
- [BUG] 长代码显示不新起一页,现在的代码显示太别扭了 HOT 1
- [BUG] HOT 4
- [Feature Request] enhanced checkbox `- [ ]` to more, for examples, `- [/]` for 'In Progress', `- [-]` for 'Cancelled', `- [>]` for 'Rescheduled', `- [<]` for 'Scheduled'
- [BUG] Table of Contents Links Jump 11 Pages Ahead in PDF HOT 2
- [BUG] image urls get rewritten to local path when exporting to markdown or html
- Help: How to export a PDF that looks exactly like the preview?
- [Feature Request] Add support for `diff` language identifier
- [BUG] formula starts with ‘+’ will considere as markdown
- [Feature Request] Allow choosing default Editor HOT 1
- [BUG] Problems with links occur when converting to PDF HOT 4
- [Feature Request] The code block will be rendered with white text on a white background, which is completely unclear.
- [Feature Request] Full document height PDF with Puppeteer
- [Feature Request] Puppeteer data and time format
- [BUG] Cannot transform to pdf successfully.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
` 元素
from vscode-markdown-preview-enhanced.