@pantoken/typedoc-plugin-live-example 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ import { Application } from "typedoc";
4
4
  /** Options controlling how a live-example preview is built. */
5
5
  interface LiveExampleOptions {
6
6
  /**
7
- * Build the block inserted after each ` ```html ` fence from the example's markup — override this to
7
+ * Build the block inserted after each `html` fence from the example's markup — override this to
8
8
  * control the wrapper STRUCTURE (a card element, extra nesting, data attributes, …). It's called only
9
9
  * for non-overlay examples. Defaults to {@link defaultWrap} (`<div class="css-example">…</div>`).
10
10
  *
@@ -16,7 +16,7 @@ interface LiveExampleOptions {
16
16
  /** The default wrapper: the example markup in a `<div class="css-example">`. */
17
17
  declare function defaultWrap(html: string): string;
18
18
  /**
19
- * Append a live preview after each ` ```html ` fence in `markdown`, echoing the fence's markup through
19
+ * Append a live preview after each `html` fence in `markdown`, echoing the fence's markup through
20
20
  * {@link LiveExampleOptions.wrap} so it renders beneath the source. Overlay examples are left source-only.
21
21
  *
22
22
  * @param markdown - The rendered page markdown.
package/dist/index.mjs CHANGED
@@ -6,10 +6,10 @@ import { ParameterType, RendererEvent } from "typedoc";
6
6
  * `@pantoken/typedoc-plugin-live-example` — embed a live HTML preview beneath each `@example` on a CSS
7
7
  * reference page.
8
8
  *
9
- * `@cssdoc/markdown` renders an `@example` as a plain ` ```html ` code fence, and stays that way on
9
+ * `@cssdoc/markdown` renders an `@example` as a plain `html` code fence, and stays that way on
10
10
  * purpose — a generic renderer can't assume the host page loads the component CSS globally. pantoken's
11
11
  * docs DO load `@pantoken/components` globally, so each example can render live under its source. This
12
- * plugin post-processes the emitted markdown: after every ` ```html ` fence it appends a
12
+ * plugin post-processes the emitted markdown: after every `html` fence it appends a
13
13
  * `<div class="css-example">` holding the same markup, which the docs theme styles as one joined
14
14
  * "source + preview" card. Overlay examples (`<dialog>`, `[popover]`) are skipped — they're hidden until
15
15
  * opened, so their `## Demo` iframe drives the preview instead.
@@ -21,7 +21,7 @@ import { ParameterType, RendererEvent } from "typedoc";
21
21
  * @module
22
22
  * @beta
23
23
  */
24
- /** A fenced ` ```html ` block and its inner markup. */
24
+ /** A fenced `html` block and its inner markup. */
25
25
  const HTML_FENCE = /```html\n([\s\S]*?)\n```/gu;
26
26
  /** An example that's hidden until opened (a `<dialog>` or a `[popover]`), so its live preview is skipped. */
27
27
  function isOverlay(html) {
@@ -32,7 +32,7 @@ function defaultWrap(html) {
32
32
  return `<div class="css-example">\n${html}\n</div>`;
33
33
  }
34
34
  /**
35
- * Append a live preview after each ` ```html ` fence in `markdown`, echoing the fence's markup through
35
+ * Append a live preview after each `html` fence in `markdown`, echoing the fence's markup through
36
36
  * {@link LiveExampleOptions.wrap} so it renders beneath the source. Overlay examples are left source-only.
37
37
  *
38
38
  * @param markdown - The rendered page markdown.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pantoken/typedoc-plugin-live-example",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "TypeDoc plugin: embed a live HTML preview beneath each @example on a CSS reference page.",
5
5
  "homepage": "https://pantoken.iywahl.com",
6
6
  "bugs": "https://github.com/thedannywahl/pantoken/issues",