Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ notes:
and `resolve.dedupe: ['vue']` to your Vite config — Vite skips CJS→ESM
pre-bundling for symlinked packages, and the linked repo carries its own
`node_modules/vue` (two Vue runtimes on one page silently break reactivity
across the component boundary). Registry installs need neither. In the
browser you may also need a `global` → `globalThis` define, since
mathjax-full references the Node.js `global` at module scope.
across the component boundary). Registry installs need neither. See
`examples/vue-playground/vite.config.js` for a working setup (including the
`global` → `globalThis` define that mathjax-full needs in browsers).

## Security / trust model

Expand Down
2 changes: 2 additions & 0 deletions examples/vue-playground/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
54 changes: 54 additions & 0 deletions examples/vue-playground/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SeeMark Vue Playground</title>
<style>
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}

/* Demo styling only. SeeMark's default components are intentionally
unstyled — a real consumer supplies its own CSS. These rules mirror
Access8Math's conventions (bordered tables, constrained images) so the
playground looks like a styled deployment instead of raw browser
defaults. They do not affect the adapter's output. */
article {
overflow-x: auto; /* let very wide tables scroll instead of blowing out the page */
}
table {
border: 1px solid #333;
border-collapse: collapse;
}
tr {
border: inherit;
}
th,
td {
padding: 0.25rem 0.5rem;
border: 1px solid #333;
}
img {
max-width: 100%;
height: auto;
}
figure {
margin: 0.75rem 0;
}
figcaption {
font-size: 0.9em;
color: #555;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
Loading