Cimbali/markdown-viewer

Problem with styling (only default style works)

fergiemcdowall opened this issue · 3 comments

Thanks for making this useful plugin!

I am having a problem: everything seems to work with HTML generation, but the HTML is rendered with no styling.

None of the options under "Pick a markdown and code style:" seem to have any effect with the exception of "default" which does apply a basic style.

The .md file is local on my machine. I am using firefox on a macbook (all fully updated).

Any recommendations for fixing or troubleshooting?

Thanks for reporting and sorry for delay in replying. In the “Tools” > “Browser Tools” menu there is a “Browser console” option which may report interesting error messages (shortcut Ctrl+Shift+J in my browser).

I suppose for the record that “all fully updated” at the date of writing means Firefox 111.0.1 and Markdown Viewer 1.8.1.

Hi @Cimbali,

I will try to answer his place.

same issue:                                only default style works.
fresh Firefox version:     120.0
Markdown Viewer:            1.8.1

I followed your instructions and the Browser console gives:

NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIAppStartup.secondsSinceLastOSRestart]
    _collectStartupConditionsTelemetry resource:///modules/BrowserGlue.sys.mjs:1737
    BG__onFirstWindowLoaded resource:///modules/BrowserGlue.sys.mjs:1845
    BG_observe resource:///modules/BrowserGlue.sys.mjs:1074
    _delayedStartup chrome://browser/content/browser.js:2091
BrowserGlue.sys.mjs:1746:15
update.locale  file doesn't exist in either the application or GRE directories UpdateUtils.sys.mjs:143:13
Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Tried to call unwatchFronts for the 'accessibility' type on an already destroyed front 'windowGlobalTarget'. Front.js:229:15
Unable to find target with innerWindowId:109521666049 watcher.js:188:13
Error sending event: display-change Actor.js:69:15
InvisibleToDebugger: Exception {  }
event-emitter.js:257:19
Error sending event: container-type-change Actor.js:69:15
InvisibleToDebugger: Exception {  }
event-emitter.js:257:19
Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

TypeError: ownerWin.whereToOpenLink is not a function
    onContentClick resource://gre/modules/WebNavigation.sys.mjs:250
    notifyClickListeners resource:///actors/ClickHandlerParent.sys.mjs:150
    receiveMessage resource:///actors/ClickHandlerParent.sys.mjs:60
ClickHandlerParent.sys.mjs:152:17
TypeError: ownerWin.whereToOpenLink is not a function
    onContentClick resource://gre/modules/WebNavigation.sys.mjs:250
    notifyClickListeners resource:///actors/ClickHandlerParent.sys.mjs:150
    receiveMessage resource:///actors/ClickHandlerParent.sys.mjs:60
ClickHandlerParent.sys.mjs:152:17
TypeError: ownerWin.whereToOpenLink is not a function
    onContentClick resource://gre/modules/WebNavigation.sys.mjs:250
    notifyClickListeners resource:///actors/ClickHandlerParent.sys.mjs:150
    receiveMessage resource:///actors/ClickHandlerParent.sys.mjs:60
ClickHandlerParent.sys.mjs:152:17
Error: Form history is disabled, only remove operations are allowed
    update resource://gre/modules/FormHistory.sys.mjs:1080
    addToFormHistory resource:///modules/UrlbarUtils.sys.mjs:1118
    pickResult resource:///modules/UrlbarInput.sys.mjs:1154
    pickElement resource:///modules/UrlbarInput.sys.mjs:881
    handleNavigation resource:///modules/UrlbarInput.sys.mjs:642
    handleCommand resource:///modules/UrlbarInput.sys.mjs:589
    handleKeyNavigation resource:///modules/UrlbarController.sys.mjs:344
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3820
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.sys.mjs:156
    _on_keydown resource:///modules/UrlbarInput.sys.mjs:3819
    handleEvent resource:///modules/UrlbarInput.sys.mjs:553

TypeError: ownerWin.whereToOpenLink is not a function
    onContentClick resource://gre/modules/WebNavigation.sys.mjs:250
    notifyClickListeners resource:///actors/ClickHandlerParent.sys.mjs:150
    receiveMessage resource:///actors/ClickHandlerParent.sys.mjs:60
ClickHandlerParent.sys.mjs:152:17
TypeError: ownerWin.whereToOpenLink is not a function
    onContentClick resource://gre/modules/WebNavigation.sys.mjs:250
    notifyClickListeners resource:///actors/ClickHandlerParent.sys.mjs:150
    receiveMessage resource:///actors/ClickHandlerParent.sys.mjs:60
ClickHandlerParent.sys.mjs:152:17
TypeError: ownerWin.whereToOpenLink is not a function
    onContentClick resource://gre/modules/WebNavigation.sys.mjs:250
    notifyClickListeners resource:///actors/ClickHandlerParent.sys.mjs:150
    receiveMessage resource:///actors/ClickHandlerParent.sys.mjs:60
ClickHandlerParent.sys.mjs:152:17
TypeError: ownerWin.whereToOpenLink is not a function
    onContentClick resource://gre/modules/WebNavigation.sys.mjs:250
    notifyClickListeners resource:///actors/ClickHandlerParent.sys.mjs:150
    receiveMessage resource:///actors/ClickHandlerParent.sys.mjs:60
ClickHandlerParent.sys.mjs:152:17
Cookie “” has been rejected as third-party. 40 aboutaddons.js:2733
Request to access cookie or storage on “<URL>” was blocked because we are blocking all third-party storage access requests and content blocking is enabled. 44
Cookie “” has been rejected as third-party. 4 aboutaddons.js:3094:59
Missing resource in locale fr: devtools/client/toolbox.ftl

My console looks like this (interestingly, I couldn't use Firefoxe's screenshot extension while the .md file was open- related perhaps?) ->

Screenshot 2023-11-27 at 10 10 06 (2)