diff --git a/build.js b/build.js index af4746f..a777c81 100644 --- a/build.js +++ b/build.js @@ -10,12 +10,29 @@ function getCurrentId() { return id; } +function example(code) { + const magicBrackets = /\[\[(.*)\]\]/g; + const inline = code.replace(magicBrackets, "$1"); + const escaped = code + .replace(magicBrackets, "") + .replace(//g, ">"); + + return `
${escaped}
+ <button>Click me</button>
- When buttons are clicked, the raised borders become sunken. The following button is simulated to be in the pressed (active) state. - -
<button>I am being pressed</button>
- Disabled buttons maintain the same raised border, but have a "washed out" appearance in their label.
-<button disabled>I cannot be clicked</button>
- Button focus is communicated with a dotted border, set 4px within the contents of the button. The following example is simulated to be focused.
-<button>I am focused</button>
-