-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Use showdown.js in QML meet some problem #246
Labels
Comments
I've figure out the problem. Line endings were getting "altered" prior to npm release. This should be fixed now. |
@tivie Thank for reply. That's nice. |
SInce it seems fixed, closing the issue |
In browser:
But in QML:
So, in
the resolution:
Is QML bug. QTBUG-58638 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
QML is declaration language that support EMCAScript(version 5.0).
So QML can use some JavaScript Lab, look here to show how to use.
follow is my code to use
showdown.js
in qmlIn QML file:
In
showdown.js
, I make a change such as follow:But, I meet some problem that some code throw
Error
in showdown.subParser 'paragraphs'. The error isTypeError: Cannot read property 'codeblock' of undefined
.I log the
globals.ghCodeBlocks
inshowdown.js:2198
, and it log is a[]
.Then I debug in browser, and log the
showdown.subParser
stack track.(test code isconverter.makeHtml('# title')
).the follow log is debug in qml:
In QML env lost some step.
The text was updated successfully, but these errors were encountered: