Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.md files rendering as plain text if starting with html comment #95

Closed
s-light opened this issue Jul 23, 2022 · 1 comment
Closed

.md files rendering as plain text if starting with html comment #95

s-light opened this issue Jul 23, 2022 · 1 comment

Comments

@s-light
Copy link

s-light commented Jul 23, 2022

user-seen behavior is similar to #93

i tested this only with local files on linux.

working

file

# Hello World

Some Text...

console output

07:34:47.253 Freezing file:///home/stefan/test.md DocumentFreezer.js:101:15
07:34:47.262 Suppressed script #1 
<script data-savepage-fontface="">
DocumentFreezer.js:95:13
07:34:47.262 Suppressing beforescriptexecute on  
<script data-savepage-fontface="">
DocumentFreezer.js:38:13
07:34:47.265 domFreezer on <html></html> DocumentFreezer.js:86:13
07:34:47.282 Suppressing readystatechange on  
HTMLDocument file:///home/stefan/test.md
DocumentFreezer.js:38:13
07:34:47.282 domFreezer on <html><head><link rel="stylesheet" href="resource://content-accessible/plaintext.css"></head><body><pre># Hello World

Some Text...
</pre></body></html> DocumentFreezer.js:86:13
07:34:47.283 Unfreezing file:///home/stefan/test.md DocumentFreezer.js:117:15

inspector

<html><head><link rel="stylesheet" href="resource://content-accessible/plaintext.css"><style media="screen" id="__markdown-viewer__md_css"> removed style content... </style><meta name="viewport" content="width=device-width, initial-scale=1"><title>Hello World</title></head><body><div id="__markdown-viewer__tools" class="hidden"></div><div class="markdownRoot"><h1 id="hello-world">Hello World</h1>
<p>Some Text...</p>
</div></body></html>

view-source

# Hello World

Some Text...

Page Info

  • Type: text/plain
  • Render Mode: Standards compliance mode
  • Text Encoding: UTF-8

failing

file

<!--comment-->

# Hello World

Some Text...

console

07:39:40.920 This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”. test.md
07:39:40.941 Freezing file:///home/stefan/test.md DocumentFreezer.js:101:15
07:39:40.952 Suppressed script #1 
<script data-savepage-fontface="">
DocumentFreezer.js:95:13
07:39:40.952 Suppressing beforescriptexecute on  
<script data-savepage-fontface="">
DocumentFreezer.js:38:13
07:39:40.957 domFreezer on <html></html> DocumentFreezer.js:86:13
07:39:40.981 Suppressing readystatechange on  
HTMLDocument file:///home/stefan/test.md
DocumentFreezer.js:38:13
07:39:40.982 domFreezer on <html><head></head><body># Hello World

Some Text...
</body></html> DocumentFreezer.js:86:13
07:39:40.982 Unfreezing file:///home/stefan/test.md DocumentFreezer.js:117:15
07:39:40.986 Opened null syncFetchPolicy.js:132:23
07:39:40.986 This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”. test.md
07:39:41.018 Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype. katex.min.js:1:262851

inspector

<html><head></head><body># Hello World

Some Text...
</body></html>

view-source


<!--comment-->

# Hello World

Some Text...

Page Info

  • Type: text/html
  • Render Mode: Quirks mode
  • Text Encoding: UTF-8
@s-light
Copy link
Author

s-light commented Jul 23, 2022

sorry.... this is a duplicate of #58

@s-light s-light closed this as completed Jul 23, 2022
@s-light s-light reopened this Jul 23, 2022
@s-light s-light closed this as completed Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant