• Document

Just a demo of the blog features

This is a simple demo of the blog features

Markdown Header

  • Supports markdown format e.g. lists
  • Supports bold, italic, and underscore
  • Supports markdown files, html, and typescript-rendered pages

Accordions

How does a Markdown accordion work?

Wrap the expandable content in an HTML <details> element and use <summary> for its clickable label. The browser provides the expand and collapse behavior.

Can an accordion start expanded?

Yes. Add the open attribute to the <details> element.

Does it need JavaScript?

No. Native details elements work without JavaScript and support keyboard interaction.

The code in the markdown file:

<details>  <summary>Click to expand</summary>   <p>Content shown when expanded.</p></details>

Github Style Alerts

[!NOTE] If you have ignore-scripts=true in your ~/.npmrc file, you must use the command:

npm_config_ignore_scripts=false npm install -g @github/copilot
> \[!NOTE]> If you have `ignore-scripts=true` in your `~/.npmrc` file, you must use the command:>> ```shell copy> npm_config_ignore_scripts=false npm install -g @github/copilot> ```

Persistent Checkboxes

  • Todo item 1
  • Todo item 2
  • Todo item 3
  • Todo item 4
  • Todo item 5
    • Todo sub item 1
    • Todo sub item 2

Code Blocks

Code block with line highlighting

const test = "hello";console.log(test + " world");// highlight the following lineconsole.info("this should be highlighted.");const test2 = 5;

Code block with lines highlighted and offset

const test = "hello";console.log(test + " world");// highlight the following lineconsole.info("this should be highlighted.");const test2 = 5;const test3 = test + ", this is Johnny " + test2;console.log("test", test3);

Code block from remote URL

Source<main class="main">  <div class="content">    <div class="left-side">      <div class="flexbox">        <a href="/">          <img src="logo.jpg" alt="Fullswing Logo" class="fullswing-logo" />        </a>        <span class="spacer"></span>        <div class="divider" role="separator" aria-label="Divider"></div>        <div class="social-links">          <a href="https://github.com/jburditt" aria-label="Github" target="_blank" rel="noopener">            <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="https://www.w3.org/2000/svg" alt="Github">              <path d="M12.3047 0C5.50634 0 0 5.50942 0 12.3047C0 17.7423 3.52529 22.3535 8.41332 23.9787C9.02856 24.0946 9.25414 23.7142 9.25414 23.3871C9.25414 23.0949 9.24389 22.3207 9.23876 21.2953C5.81601 22.0377 5.09414 19.6444 5.09414 19.6444C4.53427 18.2243 3.72524 17.8449 3.72524 17.8449C2.61064 17.082 3.81137 17.0973 3.81137 17.0973C5.04697 17.1835 5.69604 18.3647 5.69604 18.3647C6.79321 20.2463 8.57636 19.7029 9.27978 19.3881C9.39052 18.5924 9.70736 18.0499 10.0591 17.7423C7.32641 17.4347 4.45429 16.3765 4.45429 11.6618C4.45429 10.3185 4.9311 9.22133 5.72065 8.36C5.58222 8.04931 5.16694 6.79833 5.82831 5.10337C5.82831 5.10337 6.85883 4.77319 9.2121 6.36459C10.1965 6.09082 11.2424 5.95546 12.2883 5.94931C13.3342 5.95546 14.3801 6.09082 15.3644 6.36459C17.7023 4.77319 18.7328 5.10337 18.7328 5.10337C19.3942 6.79833 18.9789 8.04931 18.8559 8.36C19.6403 9.22133 20.1171 10.3185 20.1171 11.6618C20.1171 16.3888 17.2409 17.4296 14.5031 17.7321C14.9338 18.1012 15.3337 18.8559 15.3337 20.0084C15.3337 21.6552 15.3183 22.978 15.3183 23.3779C15.3183 23.7009 15.5336 24.0854 16.1642 23.9623C21.0871 22.3484 24.6094 17.7341 24.6094 12.3047C24.6094 5.50942 19.0999 0 12.3047 0Z" />            </svg>          </a>          <a href="https://www.linkedin.com/in/jburditt" aria-label="LinkedIn" target="_blank" rel="noopener">            <svg height="24" width="25" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 382 382" alt="LinkedIn">              <path d="M347.445,0H34.555C15.471,0,0,15.471,0,34.555v312.889C0,366.529,15.471,382,34.555,382h312.889 C366.529,382,382,366.529,382,347.444V34.555C382,15.471,366.529,0,347.445,0z M118.207,329.844c0,5.554-4.502,10.056-10.056,10.056 H65.345c-5.554,0-10.056-4.502-10.056-10.056V150.403c0-5.554,4.502-10.056,10.056-10.056h42.806 c5.554,0,10.056,4.502,10.056,10.056V329.844z M86.748,123.432c-22.459,0-40.666-18.207-40.666-40.666S64.289,42.1,86.748,42.1 s40.666,18.207,40.666,40.666S109.208,123.432,86.748,123.432z M341.91,330.654c0,5.106-4.14,9.246-9.246,9.246H286.73 c-5.106,0-9.246-4.14-9.246-9.246v-84.168c0-12.556,3.683-55.021-32.813-55.021c-28.309,0-34.051,29.066-35.204,42.11v97.079 c0,5.106-4.139,9.246-9.246,9.246h-44.426c-5.106,0-9.246-4.14-9.246-9.246V149.593c0-5.106,4.14-9.246,9.246-9.246h44.426 c5.106,0,9.246,4.14,9.246,9.246v15.655c10.497-15.753,26.097-27.912,59.312-27.912c73.552,0,73.131,68.716,73.131,106.472 L341.91,330.654L341.91,330.654z"/>            </svg>          </a>        </div>      </div>      <div style="margin-top: 4em;"></div>      @for (category of this.blogService.categories(); track category.key) {        <div class="{{ category.colour }} pill">{{ category.key | category }}</div>      }      <div class="clear"></div>      <h1>{{ this.blogService.title() }}</h1>      <router-outlet />      <div class="spacer10"></div>      @if (this.blogService.author()) {        <img src="/avatar.png" alt="Avatar" class="profile" />        <br /> &nbsp;      }      <div class="flexbox" style="position:relative">        @if (this.blogService.author()) {          <span class="small-text bottom">{{ this.blogService.author() }}</span>        }        @if (this.blogService.date()) {          <span class="spacer"></span>          <span class="small-text bottom right">{{ this.blogService.date() | date }}</span>        }      </div>       <!--      <div style="padding-top:50px"></div>      <mat-accordion>        <mat-expansion-panel>          <mat-expansion-panel-header>            <mat-panel-title>Comments</mat-panel-title>          </mat-expansion-panel-header>          <disqus [identifier]="src()" />        </mat-expansion-panel>      </mat-accordion> -->    </div>  </div></main>

Mermaid Diagrams