Skip to content

MarkdownPanel no longer works on MatLab 2021 or older. #1

@DoHaiSon

Description

@DoHaiSon

Dear author,

I'm happy to find out your repo.
However, from what I have, your util is not working on MatLab 2021 and 2022.

I check that It's working on MatLab 2018,
But on MatLab 2021, MarkdownPanel.demo() is stuck at rendering HTML output.
On MatLab 2022, this error appears instantly:

Error using MarkdownPanel/refresh
Java exception occurred:
java.lang.UnsupportedOperationException

	at com.mathworks.mlwidgets.html.HTMLRendererSupport.executeScript(HTMLRendererSupport.java:49)

	at com.mathworks.mlwidgets.html.HTMLRenderer.executeScript(HTMLRenderer.java:875)

	at com.mathworks.mlwidgets.html.HtmlComponentAdapter.executeScript(HtmlComponentAdapter.java:143)


Error in MarkdownPanel/set.Options (line 327)
            self.refresh(true);

Error in MarkdownPanel (line 158)
            self.Options = struct(...

Error in MarkdownPanel.demo (line 405)
            panel = MarkdownPanel( ...

The error caused by self.htmlComponent.executeScript(jscript);, the method executeScript no longer exists on MatLab 2022.

So could you please update your script, I found a new uihtml that intro by MatLab (Introduced in R2019b): https://www.mathworks.com/help/matlab/ref/uihtml.html

But I need something like your script which is written in Java and support from 2014 and older.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions