Community
    • Login

    wireloom in markdown viewers

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    4 Posts 2 Posters 127 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Keith CollyerK Online
      Keith Collyer
      last edited by

      I’m unclear as to the best markdown viewer for NP++ so posting here in the hope that at least one author will pick this up.
      A tool, wireloom, for creating user interface diagrams from text in a markdown fenced code block has been released on Github: https://github.com/StardockCorp/Wireloom. It creates rather good wireframes for UI development. I wondered if any of the markdown viewer plugin authors would be interested in incorporating it in their plugins.
      I did look at the resepctive GitHub pages for the viewers, but none seem to allow for requesting new features.

      1 Reply Last reply Reply Quote 0
      • rdipardoR Offline
        rdipardo
        last edited by

        Provided you have MS Edge installed, here’s an example that works fine with the Preview HTML plugin:

        preview-html-wireloom.png

        <!DOCTYPE html>
        <html>
          <head>
            <title>wireloom demo</title>
          </head>
          <body>
            <div id="container"></div>
          <script type="module">
            import wireloom from 'https://cdn.jsdelivr.net/npm/wireloom@0.7.0/+esm';
        
            wireloom.initialize({ theme: 'default' });
        
            // Render a source string to an SVG string.
            const { svg } = await wireloom.render('my-diagram',`
        window "Sign in":
          header:
            text "Welcome"
          panel:
            input placeholder="Email"
            input placeholder="Password" type=password
            button "Sign in" primary
        `);
            document.getElementById('container').innerHTML = svg;
          </script>
          </body>
        </html>
        
        Keith CollyerK 1 Reply Last reply Reply Quote 1
        • Keith CollyerK Online
          Keith Collyer @rdipardo
          last edited by

          @rdipardo Thanks, that might be helpful. For now, I don’t have Edge and I’m really looking to use it on markdown files within NP++.

          Keith CollyerK 1 Reply Last reply Reply Quote 0
          • Keith CollyerK Online
            Keith Collyer @Keith Collyer
            last edited by

            I wasn’t able to add a PR or Issue to https://github.com/ezyuzin/NppAnotherMarkdown, but it turns out I was able to add an Issue to NPPMarkdownPanel here: https://github.com/mohzy83/NppMarkdownPanel/issues/192.
            What would be really good would be if the developers of these re-merged their plugins!

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors