ep_markdown 12.0.1 → 12.0.3

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.
Files changed (2) hide show
  1. package/AGENTS.md +75 -0
  2. package/package.json +1 -1
package/AGENTS.md ADDED
@@ -0,0 +1,75 @@
1
+ # Agent Guide — ep_markdown
2
+
3
+ Edit and Export as Markdown in Etherpad.
4
+
5
+ ## Tech stack
6
+
7
+ * Etherpad plugin framework (hooks declared in `ep.json`)
8
+ * EJS templates rendered server-side via `eejsBlock_*` hooks
9
+ * html10n for i18n (`locales/<lang>.json`, `data-l10n-id` in templates)
10
+ * `ep_plugin_helpers` for shared boilerplate
11
+
12
+ ## Project structure
13
+
14
+ ```
15
+ ep_markdown/
16
+ ├── AGENTS.md
17
+ ├── CONTRIBUTING.md
18
+ ├── ep.json
19
+ ├── exportMarkdown.ts
20
+ ├── express.ts
21
+ ├── index.ts
22
+ ├── locales/
23
+ │ ├── ar.json
24
+ │ ├── bn.json
25
+ │ ├── ca.json
26
+ │ ├── cs.json
27
+ │ ├── de.json
28
+ │ ├── diq.json
29
+ │ └── ...
30
+ ├── package.json
31
+ ├── static/
32
+ │ ├── css/
33
+ │ ├── js/
34
+ │ ├── tests/
35
+ ├── templates/
36
+ │ ├── exportcolumn.html
37
+ ```
38
+
39
+ ## Helpers used
40
+
41
+ * `padToggle` (client sub-path) from `ep_plugin_helpers`
42
+
43
+
44
+ ## Helpers NOT used
45
+
46
+ _To be audited in the helpers-adoption sweep (Phase 4)._
47
+
48
+
49
+ ## Running tests locally
50
+
51
+ `ep_markdown` runs inside Etherpad's test harness. From an etherpad checkout that has installed this plugin via `pnpm run plugins i --path ../ep_markdown`:
52
+
53
+ ```bash
54
+ # Backend (Mocha) — harness boots its own server
55
+ pnpm --filter ep_etherpad-lite run test
56
+
57
+ # Playwright — needs `pnpm run dev` in a second terminal
58
+ pnpm --filter ep_etherpad-lite run test-ui
59
+ ```
60
+
61
+ ## Standing rules for agent edits
62
+
63
+ * PRs target `main`. Linear commits, no merge commits.
64
+ * Every bug fix includes a regression test in the same commit.
65
+ * All user-facing strings in `locales/`. No hardcoded English in templates.
66
+ * No hardcoded `aria-label` on icon-only controls — etherpad's html10n auto-populates `aria-label` from the localized string when (a) the element has a `data-l10n-id` and (b) no author-supplied `aria-label` is present. Adding a hardcoded English `aria-label` blocks that and leaves it untranslated. (See `etherpad-lite/src/static/js/vendors/html10n.ts:665-678`.)
67
+ * No nested interactive elements (no `<button>` inside `<a>`).
68
+ * LLM/Agent contributions are explicitly welcomed by maintainers.
69
+
70
+ ## Quick reference: hooks declared in `ep.json`
71
+
72
+ * Server: `expressCreateServer`, `loadSettings`, `clientVars`, `eejsBlock_exportColumn`, `eejsBlock_mySettings`, `eejsBlock_padSettings`, `import`
73
+ * Client: `aceEditorCSS`, `postAceInit`, `handleClientMessage_CLIENT_MESSAGE`
74
+
75
+ When adding a hook, register it in both `ep.json` *and* the matching `exports.<hook> = ...` in the JS file.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_markdown",
3
3
  "description": "Edit and Export as Markdown in Etherpad",
4
- "version": "12.0.1",
4
+ "version": "12.0.3",
5
5
  "author": {
6
6
  "name": "John McLear",
7
7
  "email": "john@mclear.co.uk",