autowiki 1.2.1

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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,184 @@
1
+ ![Agent Wiki](static/agent-wiki.png)
2
+
3
+ A Claude Code plugin that maintains an auto-updating wiki for agent context about how repository components work.
4
+
5
+ ## Features
6
+
7
+ - **`/agent-wiki:init`** - Initialize a new wiki by exploring the codebase with parallel sub-agents
8
+ - **`/agent-wiki:update`** - Update the wiki to reflect recent code changes
9
+ - **`/agent-wiki:reorganize`** - Analyze and restructure the wiki if needed
10
+ - **`/agent-wiki:serve`** - Start a local web server to browse the wiki
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ # In Claude Code, add the GitHub repo as a marketplace
16
+ /plugin marketplace add github:anyweez/agent-wiki
17
+
18
+ # Install the plugin
19
+ /plugin install agent-wiki@anyweez/agent-wiki
20
+ ```
21
+
22
+ ### Install for local development
23
+
24
+ If you want to develop or modify the plugin locally:
25
+
26
+ ```bash
27
+ # Clone this repository
28
+ git clone https://github.com/anyweez/agent-wiki.git
29
+ cd agent-wiki && npm install
30
+
31
+ # Option A: Run Claude Code with the plugin loaded directly
32
+ claude --plugin-dir /path/to/agent-wiki
33
+
34
+ # Option B: Add as a local marketplace for installation management
35
+ /plugin marketplace add /path/to/agent-wiki
36
+ /plugin install agent-wiki@agent-wiki-marketplace
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ Commands are namespaced with `agent-wiki:` prefix when installed as a plugin.
42
+
43
+ ### Initialize a wiki
44
+
45
+ In any repository:
46
+
47
+ ```
48
+ /agent-wiki:init
49
+ ```
50
+
51
+ This will:
52
+ 1. Explore your codebase with parallel sub-agents
53
+ 2. Identify key concepts, components, and patterns
54
+ 3. Create wiki pages in the `wiki/` directory
55
+ 4. Generate `llms.txt` for AI discoverability
56
+
57
+ ### Update the wiki
58
+
59
+ After making code changes:
60
+
61
+ ```
62
+ /agent-wiki:update
63
+ ```
64
+
65
+ By default, the wiki auto-updates after agent tasks complete. Disable this in `wiki/.config.yml`:
66
+
67
+ ```yaml
68
+ auto_update: false
69
+ ```
70
+
71
+ ### Browse the wiki
72
+
73
+ Start the local web server:
74
+
75
+ ```
76
+ /agent-wiki:serve
77
+ ```
78
+
79
+ Then open http://localhost:3000 in your browser.
80
+
81
+ ### Reorganize
82
+
83
+ If the wiki grows unwieldy:
84
+
85
+ ```
86
+ /agent-wiki:reorganize
87
+ ```
88
+
89
+ This analyzes the structure and suggests/applies improvements like splitting large pages or merging small ones.
90
+
91
+ ## Wiki Structure
92
+
93
+ ```
94
+ wiki/
95
+ ├── .config.yml # Configuration
96
+ ├── .index.json # Page index for fast lookups
97
+ ├── .last-update # Git commit of last update
98
+ ├── llms.txt # AI-friendly index
99
+ ├── llms-full.txt # Complete content dump
100
+ ├── overview.md # Repository overview
101
+ └── [concept].md # One page per concept
102
+ ```
103
+
104
+ ## Page Format
105
+
106
+ Each wiki page uses YAML frontmatter:
107
+
108
+ ```markdown
109
+ ---
110
+ title: Authentication System
111
+ type: concept
112
+ tags: [auth, security]
113
+ related:
114
+ - "[[User Session]]"
115
+ - "[[API Gateway]]"
116
+ sources:
117
+ - src/auth/
118
+ - src/middleware/auth.ts
119
+ ---
120
+
121
+ # Authentication System
122
+
123
+ Description and documentation...
124
+
125
+ ## Code References
126
+
127
+ - `src/auth/index.ts:15` - Main entry point
128
+ - `src/auth/jwt.ts:42-78` - Token validation
129
+ ```
130
+
131
+ ## Wikilinks
132
+
133
+ Pages are connected using `[[wikilinks]]`:
134
+
135
+ - `[[Page Name]]` - Links by title
136
+ - `[[page-name]]` - Links by slug
137
+ - `[[Page Name|display text]]` - Custom display text
138
+ - `[[subdir/page]]` - Explicit path for disambiguation
139
+
140
+ Resolution order:
141
+ 1. Exact title match
142
+ 2. Aliases in frontmatter
143
+ 3. Slugified filename
144
+
145
+ ## Configuration
146
+
147
+ Edit `wiki/.config.yml`:
148
+
149
+ ```yaml
150
+ # Auto-update after tasks (default: true)
151
+ auto_update: true
152
+
153
+ # Page organization strategy
154
+ page_granularity: concept # concept | directory | module
155
+
156
+ # Paths to exclude
157
+ exclude:
158
+ - node_modules/
159
+ - dist/
160
+ - "*.min.js"
161
+
162
+ # Custom concept groupings
163
+ concepts:
164
+ authentication:
165
+ - src/auth/
166
+ - src/middleware/auth*
167
+ ```
168
+
169
+ ## Requirements
170
+
171
+ - Python 3.8+ (for llms.txt generation)
172
+ - Node.js 16+ (for web server)
173
+ - PyYAML (`pip install pyyaml`)
174
+
175
+ ## How It Works
176
+
177
+ 1. **Exploration**: Sub-agents partition the codebase and explore in parallel
178
+ 2. **Coordination**: A coordinator agent synthesizes findings into wiki pages
179
+ 3. **Updates**: Git-based change detection identifies what needs updating
180
+ 4. **Auto-trigger**: Optional hook updates wiki after task completion
181
+
182
+ ## License
183
+
184
+ Apache 2
@@ -0,0 +1,89 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const { execSync } = require('child_process');
5
+ const path = require('path');
6
+ const fs = require('fs');
7
+
8
+ // Parse CLI arguments
9
+ const args = process.argv.slice(2);
10
+ const opts = {
11
+ port: 3000,
12
+ wikiDir: null,
13
+ export: false,
14
+ output: 'wiki-html',
15
+ open: false,
16
+ };
17
+
18
+ for (let i = 0; i < args.length; i++) {
19
+ switch (args[i]) {
20
+ case '--port':
21
+ opts.port = parseInt(args[++i], 10);
22
+ if (isNaN(opts.port)) {
23
+ console.error('Error: --port requires a number');
24
+ process.exit(1);
25
+ }
26
+ break;
27
+ case '--wiki-dir':
28
+ opts.wikiDir = args[++i];
29
+ break;
30
+ case '--export':
31
+ opts.export = true;
32
+ break;
33
+ case '--output':
34
+ opts.output = args[++i];
35
+ break;
36
+ case '--open':
37
+ opts.open = true;
38
+ break;
39
+ case '--help':
40
+ case '-h':
41
+ console.log(`Usage: autowiki [options]
42
+
43
+ Options:
44
+ --port <number> Port to listen on (default: 3000)
45
+ --wiki-dir <path> Wiki directory (default: auto-detect from git root)
46
+ --export Export static HTML instead of starting server
47
+ --output <path> Output directory for export (default: wiki-html/)
48
+ --open Auto-open browser after starting server
49
+ -h, --help Show this help message
50
+ `);
51
+ process.exit(0);
52
+ default:
53
+ console.error(`Unknown option: ${args[i]}`);
54
+ process.exit(1);
55
+ }
56
+ }
57
+
58
+ // Auto-detect wiki directory
59
+ if (!opts.wikiDir) {
60
+ let root;
61
+ try {
62
+ root = execSync('git rev-parse --show-toplevel', {
63
+ encoding: 'utf-8',
64
+ stdio: ['pipe', 'pipe', 'pipe'],
65
+ }).trim();
66
+ } catch {
67
+ root = process.cwd();
68
+ }
69
+ opts.wikiDir = path.join(root, 'wiki');
70
+ }
71
+
72
+ // Resolve to absolute path
73
+ opts.wikiDir = path.resolve(opts.wikiDir);
74
+
75
+ // Verify wiki directory exists
76
+ if (!fs.existsSync(opts.wikiDir)) {
77
+ console.error(`Error: Wiki directory not found: ${opts.wikiDir}`);
78
+ console.error('Run this command from a repo with a wiki/ directory, or use --wiki-dir');
79
+ process.exit(1);
80
+ }
81
+
82
+ // Start server or export
83
+ if (opts.export) {
84
+ const { exportSite } = require('../lib/server');
85
+ exportSite(opts.wikiDir, path.resolve(opts.output));
86
+ } else {
87
+ const { startServer } = require('../lib/server');
88
+ startServer(opts.wikiDir, opts.port, opts.open);
89
+ }
@@ -0,0 +1,84 @@
1
+ 'use strict';
2
+
3
+ const KEYWORDS = {
4
+ js: new Set([
5
+ 'const', 'let', 'var', 'function', 'return', 'if', 'else', 'for', 'while',
6
+ 'do', 'switch', 'case', 'break', 'continue', 'new', 'this', 'class',
7
+ 'extends', 'import', 'export', 'default', 'from', 'async', 'await', 'try',
8
+ 'catch', 'throw', 'finally', 'typeof', 'instanceof', 'in', 'of', 'yield',
9
+ 'delete', 'void', 'null', 'undefined', 'true', 'false', 'super', 'static',
10
+ 'get', 'set', 'require', 'module',
11
+ ]),
12
+ py: new Set([
13
+ 'def', 'class', 'return', 'if', 'elif', 'else', 'for', 'while', 'break',
14
+ 'continue', 'import', 'from', 'as', 'try', 'except', 'finally', 'raise',
15
+ 'with', 'yield', 'lambda', 'pass', 'del', 'and', 'or', 'not', 'in', 'is',
16
+ 'None', 'True', 'False', 'self', 'print', 'global', 'nonlocal', 'assert',
17
+ 'async', 'await',
18
+ ]),
19
+ sh: new Set([
20
+ 'if', 'then', 'else', 'elif', 'fi', 'for', 'while', 'do', 'done', 'case',
21
+ 'esac', 'function', 'return', 'exit', 'echo', 'export', 'local', 'readonly',
22
+ 'declare', 'set', 'unset', 'source', 'true', 'false',
23
+ ]),
24
+ };
25
+
26
+ const LANG_MAP = {
27
+ javascript: 'js', js: 'js', jsx: 'js', ts: 'js', tsx: 'js',
28
+ typescript: 'js', mjs: 'js', cjs: 'js',
29
+ python: 'py', py: 'py',
30
+ bash: 'sh', sh: 'sh', shell: 'sh', zsh: 'sh',
31
+ };
32
+
33
+ function escapeHtml(str) {
34
+ return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
35
+ }
36
+
37
+ function highlight(code, lang) {
38
+ const escaped = escapeHtml(code);
39
+ if (!lang) return escaped;
40
+
41
+ const langKey = LANG_MAP[lang.toLowerCase()];
42
+ if (!langKey) return escaped;
43
+
44
+ const kw = KEYWORDS[langKey];
45
+ const placeholders = [];
46
+
47
+ // Build regex for strings and comments (language-aware)
48
+ const parts = [];
49
+ if (langKey === 'py' || langKey === 'sh') {
50
+ parts.push('#.*$');
51
+ } else {
52
+ parts.push('\\/\\/.*$', '\\/\\*[\\s\\S]*?\\*\\/');
53
+ }
54
+ parts.push('"(?:[^"\\\\]|\\\\.)*"', "'(?:[^'\\\\]|\\\\.)*'");
55
+ if (langKey === 'js') parts.push('`(?:[^`\\\\]|\\\\.)*`');
56
+
57
+ const tokenRe = new RegExp('(' + parts.join('|') + ')', 'gm');
58
+
59
+ let result = escaped;
60
+
61
+ // Step 1: Extract strings and comments into placeholders
62
+ result = result.replace(tokenRe, (m) => {
63
+ const idx = placeholders.length;
64
+ const isComment = m.startsWith('//') || m.startsWith('#') || m.startsWith('/*');
65
+ const cls = isComment ? 'hl-cm' : 'hl-st';
66
+ placeholders.push('<span class="' + cls + '">' + m + '</span>');
67
+ return '\x00P' + idx + '\x00';
68
+ });
69
+
70
+ // Step 2: Highlight keywords
71
+ result = result.replace(/\b([a-zA-Z_]\w*)\b/g, (m) => {
72
+ return kw.has(m) ? '<span class="hl-kw">' + m + '</span>' : m;
73
+ });
74
+
75
+ // Step 3: Highlight numbers
76
+ result = result.replace(/\b(\d+\.?\d*)\b/g, '<span class="hl-nu">$1</span>');
77
+
78
+ // Step 4: Restore placeholders
79
+ result = result.replace(/\x00P(\d+)\x00/g, (_, idx) => placeholders[parseInt(idx)]);
80
+
81
+ return result;
82
+ }
83
+
84
+ module.exports = { highlight };
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ const { highlight } = require('./highlight');
4
+
5
+ function createRenderer(titleToSlug) {
6
+ let MarkdownIt;
7
+ try {
8
+ MarkdownIt = require('markdown-it');
9
+ } catch (e) {
10
+ console.error('Error: markdown-it is required. Run: npm install');
11
+ process.exit(1);
12
+ }
13
+
14
+ const md = new MarkdownIt({
15
+ html: true,
16
+ linkify: true,
17
+ typographer: true,
18
+ highlight(str, lang) {
19
+ return highlight(str, lang);
20
+ },
21
+ });
22
+
23
+ // Try to load wikilinks plugin
24
+ try {
25
+ const wikilinks = require('markdown-it-wikilinks')({
26
+ baseURL: '/',
27
+ relativeBaseURL: '',
28
+ makeAllLinksAbsolute: true,
29
+ uriSuffix: '',
30
+ htmlAttributes: { class: 'wikilink' },
31
+ generatePageNameFromLabel(label) {
32
+ const lower = label.toLowerCase();
33
+ if (titleToSlug[lower]) return titleToSlug[lower];
34
+ return lower.replace(/\s+/g, '-');
35
+ },
36
+ });
37
+ md.use(wikilinks);
38
+ } catch (e) {
39
+ // Wikilinks plugin not available
40
+ }
41
+
42
+ return {
43
+ render(markdown) {
44
+ return md.render(markdown);
45
+ },
46
+ };
47
+ }
48
+
49
+ module.exports = { createRenderer };