Skip to content

Preview displayed before embedded js script is run #137

@Yanncha

Description

@Yanncha

Hello !

Thanks for this helpful plugin.

I wrote a small piece of js code to parse the html page generated by MarkdownPanel and replace a few elements:

  • some custom task list items (e.g. [*] to indicate a new item) that are replaced by a matching emoji
  • computes the progress on a list to display a progress bar, by retrieving the "cost" of each item and seeing if the corresponding checkbox is checked or not

At last it works quite fine (I can post the code in another message), but the preview is not corrrectly updated with dynamic values in the panel. To get the correct preview, I need to switch to another document tab in Npp and back to the md document.
Launching a refresh in the preview pane also only triggers a half update (not all values get updated).

HTML export is correct though.

Cheers !
Yann

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