Community
    • Login

    wireloom in markdown viewers

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    2 Posts 2 Posters 61 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 Offline
      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>
        
        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