Your Logo
  • Topic 1
  • Topic 2
  • Topic 3a
  • Topic 3b

  • #1168 Bug: Trim in codeAndOutput.md does not work here

    CODE:

    Normal:<span class="badge badge-primary">Primary</span><span class="badge badge-secondary">Secondary</span><span class="badge badge-success">Success</span><span class="badge badge-danger">Danger</span><span class="badge badge-warning">Warning</span><span class="badge badge-info">Info</span><span class="badge badge-light">Light</span><span class="badge badge-dark">Dark</span><br>Pills:<span class="badge badge-pill badge-primary">Primary</span><span class="badge badge-pill badge-secondary">Secondary</span><span class="badge badge-pill badge-success">Success</span><span class="badge badge-pill badge-danger">Danger</span><span class="badge badge-pill badge-warning">Warning</span><span class="badge badge-pill badge-info">Info</span><span class="badge badge-pill badge-light">Light</span><span class="badge badge-pill badge-dark">Dark</span>

    OUTPUT:

    Normal: Primary Secondary Success Danger Warning Info Light Dark
    Pills: Primary Secondary Success Danger Warning Info Light Dark

    CODE:

    Consider the xml code `<bar type="name">goo</bar>`{.xml},<br>or the java code `public static void main(String[] args)`{.java}.

    OUTPUT:

    Consider the xml code <bar type="name">goo</bar>,
    or the java code public static void main(String[] args).

    CODE:

    This is the second sentence.<br>This should be on a new line.This will not be in a new line.

    OUTPUT:

    This is the second sentence.
    This should be on a new line. This will not be in a new line.

    CODE:

    * Item 1  * Sub item 1.1  * Sub item 1.2<br>    Second line    * Sub item 1.2.1* Item 2* Item 3

    OUTPUT:

    • Item 1
      • Sub item 1.1
      • Sub item 1.2
        Second line
        • Sub item 1.2.1
    • Item 2
    • Item 3

    CODE:

    More about <trigger for="modal:loremipsum">trigger</trigger>.<modal header="**Modal header** :rocket:" id="modal:loremipsum">  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore  magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.  Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</modal><br>This is the same <trigger for="modal:loremipsum">trigger</trigger> as last one.<trigger for="modal:centered">This is a trigger for a centered modal</trigger>.<modal header="**Centered** :rocket:" id="modal:centered" center="">  Centered</modal><trigger for="modal:ok-text">This is a trigger for a modal with a custom OK button</trigger>.<modal header="OK button visible!" id="modal:ok-text" ok-text="Custom OK">  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore  magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.  Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</modal>

    OUTPUT:

    More about trigger. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    This is the same trigger as last one.

    This is a trigger for a centered modal.

    Centered

    This is a trigger for a modal with a custom OK button.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    CODE:

    <popover effect="fade" content="Lorem ipsum dolor sit amet" placement="top">  <button class="btn btn-secondary">Popover on top</button></popover><popover effect="fade" content="Lorem ipsum dolor sit amet" placement="left">  <button class="btn btn-secondary">Popover on left</button></popover><popover effect="fade" content="Lorem ipsum dolor sit amet" placement="right">  <button class="btn btn-secondary">Popover on right</button></popover><popover effect="fade" content="Lorem ipsum dolor sit amet" placement="bottom">  <button class="btn btn-secondary">Popover on bottom</button></popover><hr><h4 class="no-index">Header</h4><popover effect="fade" header="Header" content="Lorem ipsum dolor sit amet" placement="top">  <button class="btn btn-secondary">Popover on top</button></popover><popover effect="fade" header="Header" content="Lorem ipsum dolor sit amet" placement="left">  <button class="btn btn-secondary">Popover on left</button></popover><popover effect="fade" header="Header" content="Lorem ipsum dolor sit amet" placement="right">  <button class="btn btn-secondary">Popover on right</button></popover><popover effect="fade" header="Header" content="Lorem ipsum dolor sit amet" placement="bottom">  <button class="btn btn-secondary">Popover on bottom</button></popover><hr><h4 class="no-index">Trigger</h4><p>  <popover effect="scale" header="Header" content="Lorem ipsum dolor sit amet" placement="top" trigger="hover">    <button class="btn btn-secondary">Mouseenter</button>  </popover></p><h4 class="no-index">Markdown</h4><p>  <popover effect="scale" header="**Emoji header** :rocket:" content="++emoji++ content :cat:">    <button class="btn btn-secondary">Hover</button>  </popover></p><h4 class="no-index">Content using slot</h4><popover effect="scale" header="**Emoji header** :rocket:">  <div slot="content">    This is a long content...  </div>  <button class="btn btn-secondary">Hover</button></popover><br><br><h4 class="no-index">Wrap Text</h4><popover header="false" content="Nice!">What do you say</popover>

    OUTPUT:

    Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet
    HeaderLorem ipsum dolor sit amet HeaderLorem ipsum dolor sit amet HeaderLorem ipsum dolor sit amet HeaderLorem ipsum dolor sit amet

    Trigger

    HeaderLorem ipsum dolor sit amet

    Markdown

    Emoji header 🚀emoji content 🐱

    Content using slot

    Emoji header 🚀
    This is a long content...


    Wrap Text

    falseNice!What do you say

    CODE:

    More about <trigger for="pop:trigger_id">trigger</trigger>.<popover id="pop:trigger_id" content="This popover is triggered by a trigger"></popover><br>This is the same <trigger for="pop:trigger_id">trigger</trigger> as last one.

    OUTPUT:

    More about trigger. This popover is triggered by a trigger
    This is the same trigger as last one.

    CODE:

    More about <trigger for="tt:trigger_id">trigger</trigger>.<tooltip id="tt:trigger_id" content="This tooltip triggered by a trigger"></tooltip><br>This is the same <trigger for="tt:trigger_id">trigger</trigger> as last one.

    OUTPUT:

    More about trigger. This tooltip triggered by a trigger
    This is the same trigger as last one.


    #1168 Bug: Using codeAndOutput.md boilerplate will cause wrong rendering of boolean attributes

    • light
    • dismissible
    • minimized
    • expanded
    • no-switch, no-close

    But works for some boolean attributes e.g. seamless

    CODE:

    <box>    default</box><box type="info">    info</box><box type="warning">    warning</box><box type="success">    success</box><box type="important">    important</box><box type="wrong">    wrong</box><box type="tip">    tip</box><box type="definition">    definition</box><box type="info" dismissible="">    dismissible info</box><box type="success" header="#### Header :rocket:" icon-size="2x">    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.    <box type="warning" header="You can use **markdown** here! :pizza:" dismissible="">        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.    </box></box>

    OUTPUT:

    default info warning success important wrong tip definition dismissible info Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

    CODE:

    <box type="info" light="">    info light</box><box type="warning" light="">    warning light</box><box type="success" light="">    success light</box><box type="important" light="">    important light</box><box type="wrong" light="">    wrong light</box><box type="tip" light="">    tip light</box><box type="definition" light="">    definition light</box>

    OUTPUT:

    info light warning light success light important light wrong light tip light definition light

    CODE:

    <box type="info" seamless>    info seamless</box><box type="warning" seamless>    warning seamless</box><box type="success" seamless>    success seamless</box><box type="important" seamless>    important seamless</box><box type="wrong" seamless>    wrong seamless</box><box type="tip" seamless>    tip seamless</box><box type="definition" seamless>    definition seamless</box>

    OUTPUT:

    info seamless warning seamless success seamless important seamless wrong seamless tip seamless definition seamless

    CODE:

    <panel header="How to cultivate a tomato plant at home" alt="Tomatoes" minimized="">  Lorem ipsum ...</panel>

    OUTPUT:

    Lorem ipsum ...

    CODE:

    <panel header="Have your readers click less to see the Panel's contents" expanded="">  Lorem ipsum ...</panel>

    OUTPUT:

    Lorem ipsum ...

    CODE:

    <panel header="**light type panel (DEFAULT)**" type="light" minimized="">  ...</panel><panel header="**dark type panel**" type="dark" minimized="">  ...</panel><panel header="**primary type panel**" type="primary" minimized="">  ...</panel><panel header="**secondary type panel**" type="secondary" minimized="">  ...</panel><panel header="**info type panel**" type="info" minimized="">  ...</panel><panel header="**danger type panel**" type="danger" minimized="">  ...</panel><panel header="**warning type panel**" type="warning" minimized="">  ...</panel><panel header="**success type panel**" type="success" minimized="">  ...</panel><panel header="**seamless type panel**" type="seamless" minimized="">  ...</panel><panel header="**minimal type panel**" type="minimal" minimized="">  ...</panel>

    OUTPUT:

    ... ... ... ... ... ... ... ... ... ...

    CODE:

    <panel header="This panel does not have a switch button" no-switch="">  ...</panel><panel header="This panel does not have a close button" no-close="">  ...</panel><panel header="This panel does not have either buttons" no-close="" no-switch="">  ...</panel>

    OUTPUT:

    ... ... ...

    CODE:

    <panel header="Q1 :crown:" minimized="">  <question has-input="">    Who is the first king of Thailand?  </question></panel><panel header="Q2 :pizza:" minimized="">  <question has-input="">    Which country did the Hawaiian pizza originate from?    <div slot="hint">      Not Italy or Haiwaii <md>:smirk:</md>    </div>  </question></panel>

    OUTPUT:

    Who is the first king of Thailand? Which country did the Hawaiian pizza originate from?
    Not Italy or Haiwaii 😏

    #1168 Bug: Have to put spaces on empty lines or else the spans will collapse. Markdown-it rendering issue or variable related issue?

    CODE:

    ```java {highlight-lines="2,4,6-8"}import java.util.List; public class Inventory {    private List<Item> items;     public int getItemCount(){        return items.size();    }     //...}```

    OUTPUT:

    import java.util.List; public class Inventory {    private List<Item> items;     public int getItemCount(){        return items.size();    }     //...}

    #1168 Bug: Using codeAndOutput.md boilerplate causes extra divs to render

    CODE:

    <!--Notice how header attribute supports inline MarkDown--><div class="temp-dropdown-placeholder">*Action*</div><dropdown header="*Action*" type="primary" class="temp-dropdown">  <li><a href="#dropdown" class="dropdown-item">Action</a></li>  <li><a href="#dropdown" class="dropdown-item">Another action</a></li>  <li><a href="#dropdown" class="dropdown-item">Something else here</a></li>  <li role="separator" class="dropdown-divider"></li>  <li><a href="#dropdown" class="dropdown-item">Separated link</a></li></dropdown><!-- For segmented dropdown, ignore header and add a "before" slot --><div class="temp-dropdown-placeholder"></div><dropdown type="info" class="temp-dropdown">  <button slot="before" type="button" class="btn btn-info">Segmented</button>  <li><a href="#dropdown" class="dropdown-item">...</a></li></dropdown><!-- Right aligned list --><div class="temp-dropdown-placeholder">Right aligned list</div><dropdown header="Right aligned list" type="primary" menu-align-right="" class="temp-dropdown">  <li><a href="#dropdown" class="dropdown-item">Something else here</a></li></dropdown>

    OUTPUT:

    CODE:

    <!-- In a button group --><div class="btn-group d-flex" role="group">  <a href="#dropdown" class="btn btn-danger w-100" role="button">Left</a>  <!-- With slots you can handle some elements as native bootstrap -->  <div class="w-100 temp-dropdown-placeholder"></div><dropdown class="w-100 temp-dropdown">    <button slot="button" type="button" class="btn btn-warning dropdown-toggle w-100">      Action      <span class="caret"></span>    </button>    <ul slot="dropdown-menu" class="dropdown-menu">      <li><a href="#dropdown" class="dropdown-item">Action</a></li>      <li><a href="#dropdown" class="dropdown-item">Another action</a></li>      <li><a href="#dropdown" class="dropdown-item">Something else here</a></li>      <li role="separator" class="dropdown-divider"></li>      <li><a href="#dropdown" class="dropdown-item">Separated link</a></li>    </ul>  </dropdown>  <a href="#dropdown" class="btn btn-success w-100" role="button">Right</a></div>

    OUTPUT:


    #1168 Bug: src resolves to full absolute path

    CODE:

    <panel header="Content loaded in from 'src'" src="C:\Users\neilb\Projects\markbind-plain-site\extra\loadContent.html" minimized="" fragment="fragment"></panel>

    OUTPUT:

    CODE:

    <panel header="Questions loaded in from `quiz.md`" src="C:\Users\neilb\Projects\markbind-plain-site\extra\quiz.md"></panel>

    OUTPUT:


    #1168 Bug: Fragment attribute also shows

    CODE:

    <panel header="Right click and inspect my HTML before expanding me!" src="C:\Users\neilb\Projects\markbind-plain-site\extra\loadContent.html" preload="" fragment="fragment">  <p>You should be able to find this text before expanding the Panel.</p></panel>

    OUTPUT:

    You should be able to find this text before expanding the Panel.