{"_id":"mdast-util-wiki-link","_rev":"6-6873db39a46f0f2bc6b12072ac766f50","name":"mdast-util-wiki-link","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.1":{"name":"mdast-util-wiki-link","version":"0.0.1","description":"Parse and render wiki-style links","keywords":["remark","remark-plugin","markdown","gfm","micromark","micromark-plugin","mdast","mdast-util"],"author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"repository":{"type":"git","url":"git+https://github.com/landakram/mdast-util-wiki-link.git"},"license":"MIT","main":"dist/index.cjs.js","module":"dist/index.esm.js","browser":"dist/index.umd.js","directories":{"test":"test"},"scripts":{"build":"rollup -c","lint":"eslint src/","prepare":"npm run build","pretest":"npm run build","test":"npm run lint && mocha --require @babel/register test/index_test.js"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/register":"^7.12.1","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.1.0","eslint":"^7.11.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","mdast-util-from-markdown":"^0.8.0","micromark":"^2.10.1","mocha":"^8.2.0","rollup":"^2.32.0","unist-util-visit":"^2.0.3"},"dependencies":{"@babel/runtime":"^7.12.1","mdast-util-to-markdown":"^0.5.1"},"gitHead":"04e5b451568699e3925a225670d2e44f2859e5ac","bugs":{"url":"https://github.com/landakram/mdast-util-wiki-link/issues"},"homepage":"https://github.com/landakram/mdast-util-wiki-link#readme","_id":"mdast-util-wiki-link@0.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","_npmUser":{"name":"landakram","email":"me@markhudnall.com"},"dist":{"integrity":"sha512-mQGhpvS1kICzDvC4me3vV4L/0msyGTvoHWIjqI0wUR1ToQ+CMy1o+tDVsS1G6QrXMMHOY0I8S9k6qwRfjxS6cA==","shasum":"1f70e494d8af5fd527210f300683016be8307fd5","tarball":"https://registry.npmjs.org/mdast-util-wiki-link/-/mdast-util-wiki-link-0.0.1.tgz","fileCount":13,"unpackedSize":26679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfi8HCCRA9TVsSAnZWagAAyKQP+gOyjXQmAgVFkc6taBm+\nALSTvVuDn3lRw8EocHsmVoHde3hLcUfMks5eonGZPsSAt5q0AySNuPncjips\noeo/tvfKXdsTECziNuBYISMy9dAqEOdSLaWxOPwdL9HaW5p1lUNmlrlBCh6R\nukehfD8LPrLZgis/cbDYxUy6IMKEHvB6/vQG0E5OSjh3hT42m8o7zAw9Nm6D\nasQdXC3OGrazMq0ZwwGiYaKPREtB44FQX0hX8HQ6Yi0nr24eJY6vk37cFFzX\nGCFNC/HJRLviImbqo1dawACQPPJcKstfDa+N2Vp9rpiMmVnYs2M3RQNmSiWP\nfSNLytSLh72yLQueu46AVDvkgZE29yBEBkVuk/WOILbghyJe0OyzieeFfDtn\naZpu5vFhz7abK6oAUF9/UqJrEAmWxwiViYkdT/NUf+klydYwtVIp439+I1lK\njhCInGmVBdYenuuhPGlb7VmzehSTEkjNf0HOzjZl1zGxkHJlLYe7qyIdXwVG\ny0WBY/tyOmSQ7nsev3tNslVPAGpefxpxwBmMjE2RL/fhcf7Ba8ullTI+z7MN\nWl7vYPFt4HuUhPpz0TCMPrQPhG8jjdjRm+80S+KWF3iv4FzvGnhPvc4k98Bj\n0S6x4xwIKuiMS169cOmbwGbov3z489/18Dbbk3UizjNc+/EHzOcNAc3OYW3S\nSIOP\r\n=2orE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALFBKaktfTaYRsiP2rHcfs2zitQcz1SAzOrPuwj8xT/AiBu4tmvGYgLWogXAdpXyCCk6G6YBkA/Ocu/ex7tVYgzVw=="}]},"maintainers":[{"name":"landakram","email":"me@markhudnall.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-wiki-link_0.0.1_1602994625821_0.4011241769591569"},"_hasShrinkwrap":false},"0.0.2":{"name":"mdast-util-wiki-link","version":"0.0.2","description":"Parse and render wiki-style links","keywords":["remark","remark-plugin","markdown","gfm","micromark","micromark-plugin","mdast","mdast-util"],"author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"repository":{"type":"git","url":"git+https://github.com/landakram/mdast-util-wiki-link.git"},"license":"MIT","main":"dist/index.cjs.js","module":"dist/index.esm.js","browser":"dist/index.umd.js","directories":{"test":"test"},"scripts":{"build":"rollup -c","lint":"eslint src/","prepare":"npm run build","pretest":"npm run build","test":"npm run lint && mocha --require @babel/register test/index_test.js"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/register":"^7.12.1","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.1.0","eslint":"^7.11.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","mdast-util-from-markdown":"^0.8.0","micromark":"^2.10.1","micromark-extension-wiki-link":"^0.0.4","mocha":"^8.2.0","rollup":"^2.32.0","unist-util-visit":"^2.0.3"},"dependencies":{"@babel/runtime":"^7.12.1","mdast-util-to-markdown":"^0.6.5"},"gitHead":"8b0fb25c9d7eaab21a7344c307f30004ff87235b","bugs":{"url":"https://github.com/landakram/mdast-util-wiki-link/issues"},"homepage":"https://github.com/landakram/mdast-util-wiki-link#readme","_id":"mdast-util-wiki-link@0.0.2","_nodeVersion":"16.4.1","_npmVersion":"7.18.1","dist":{"integrity":"sha512-lSsR10/dPuYIxzjGZIGA4oYzsnEnqcsD6DTXL0pqdbBzNB9teKVZB2aIzZcUsdg31v/NoHOstkVwzbN6VrQLtw==","shasum":"f9cb957febafa3ddc4cf1567ec159400217e1690","tarball":"https://registry.npmjs.org/mdast-util-wiki-link/-/mdast-util-wiki-link-0.0.2.tgz","fileCount":14,"unpackedSize":27589,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4KZyCRA9TVsSAnZWagAA/nsQAIQp9lbIXBqxXPaEeqkg\nq2/SNSMxW1pw9kWYPf0uS4BPvzFpYz+S/jXoprWThKbcSu2Eneg3Cinc+drZ\nBojVL/q01vPwMEzUH0xKK5FQ7D0DPCQHyiBAi6PnqviWWL8h0pPrwQbYXJcV\njaocZUqxA5pl+Ya2IdvXnJFCwobdQQ3BL87uiuLOZUKDiGMB3uCBC+0n2WgJ\nAd5clb9fT2hIqQv+imVyaElbCziwVpndcKgt82gLDyVKKBtuyx0RAT0GMdI+\ngF+WagyKvMq4ns9QhNBXgf8s+olM0mYh6O6z1XfMBKtdWtJwpwb7Ux8K3zmq\nca5yHuRjdxirDKECjssJIonTZozsMi2xTaQ8Cpz/GjWVL+EmbCN3kGYDsMON\nhjXwE9IKwfkz+h8zwpPrXNjtTAY8gyJ2fNN1MTMFgBq2StCWofo2zRof69tJ\nCoUGOYErKiudUmtf3Nya/NnJOzTvNQR8fQWQscXsUnukcrTInX49LhbK209M\n2eq4M+l1ezwgvmaTe5txO6xT6fJgnVXrRTrqvisEn+dn/c44KfphFYlZdoVa\nP8+onnIc92jP1ABCwHudOYjzTlYbqxnVrwO0Zz/fMI3NQT6TfjUdJVhgRDTu\nUO5anrvBEFcXs/TGnYuwamwM1aMFLjEYOH2224+bp1R3Mcj+FCdvQAfdQlAi\nfQ4g\r\n=N2rt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3fkycysCDKbCMcQE5GgNpVr/JDH9j/AfruRv9SmPd/AiAS+9KeJqr6epkaU9EAC71QuFTAJqDMCyPy9lFljzD7Wg=="}]},"_npmUser":{"name":"landakram","email":"me@markhudnall.com"},"maintainers":[{"name":"landakram","email":"me@markhudnall.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-wiki-link_0.0.2_1625335410010_0.8843050519793456"},"_hasShrinkwrap":false},"0.0.3-alpha.0":{"name":"mdast-util-wiki-link","version":"0.0.3-alpha.0","description":"Parse and render wiki-style links","keywords":["remark","remark-plugin","markdown","gfm","micromark","micromark-plugin","mdast","mdast-util"],"author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"repository":{"type":"git","url":"git+https://github.com/landakram/mdast-util-wiki-link.git"},"license":"MIT","type":"module","browser":"dist/index.umd.js","exports":{".":{"import":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"directories":{"test":"test"},"scripts":{"build":"webpack","lint":"eslint src/","prepare":"npm run build","pretest":"npm run build","test":"npm run lint && NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/register":"^7.12.1","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.1.0","@types/jest":"^29.5.3","@typescript-eslint/eslint-plugin":"^6.3.0","@typescript-eslint/parser":"^6.3.0","eslint":"^8.47.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.28.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","jest":"^29.6.2","mdast-util-from-markdown":"^2.0.0","micromark":"^2.10.1","micromark-extension-wiki-link":"^0.0.4","mocha":"^8.2.0","rollup":"^2.32.0","ts-jest":"^29.1.1","ts-loader":"^9.4.4","typescript":"^5.1.6","unist-util-visit":"^2.0.3","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"dependencies":{"@babel/runtime":"^7.12.1","mdast-util-to-markdown":"^0.6.5"},"gitHead":"dd34787fbeb662fef03dcbd5d23e280ea549a365","bugs":{"url":"https://github.com/landakram/mdast-util-wiki-link/issues"},"homepage":"https://github.com/landakram/mdast-util-wiki-link#readme","_id":"mdast-util-wiki-link@0.0.3-alpha.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-aj/q6WDx+pOhzav8bGFgp5qvj2JpbakYbWnb5Vnhny05up4NH8VNF8gxA46ztmrTtkYrzH8iAY3VhPwjy5Ftmw==","shasum":"d30d952b42f3b32571c18e48e3719b23b4db1219","tarball":"https://registry.npmjs.org/mdast-util-wiki-link/-/mdast-util-wiki-link-0.0.3-alpha.0.tgz","fileCount":25,"unpackedSize":54562765,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPC+RvLfY3ReUJZoLR2TjQRN1DLbVPQXF7UWFWSTUQXAIgNfq6H4PP0Bf+rt8LiOEJVm2tCyDUZp3jI08DGN0H9OM="}]},"_npmUser":{"name":"landakram","email":"me@markhudnall.com"},"maintainers":[{"name":"landakram","email":"me@markhudnall.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-wiki-link_0.0.3-alpha.0_1692045107552_0.5919790537923857"},"_hasShrinkwrap":false},"0.1.0":{"name":"mdast-util-wiki-link","version":"0.1.0","description":"Parse and render wiki-style links","keywords":["remark","remark-plugin","markdown","gfm","micromark","micromark-plugin","mdast","mdast-util"],"author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"repository":{"type":"git","url":"git+https://github.com/landakram/mdast-util-wiki-link.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"directories":{"test":"test"},"scripts":{"build":"webpack","lint":"eslint src/","prepare":"npm run build","pretest":"npm run build","test":"npm run lint && NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/register":"^7.12.1","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.1.0","@types/jest":"^29.5.3","@typescript-eslint/eslint-plugin":"^6.3.0","@typescript-eslint/parser":"^6.3.0","eslint":"^8.47.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.28.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","jest":"^29.6.2","mdast-util-from-markdown":"^2.0.0","micromark":"^2.10.1","micromark-extension-wiki-link":"^0.0.4","mocha":"^8.2.0","rollup":"^2.32.0","ts-jest":"^29.1.1","ts-loader":"^9.4.4","typescript":"^5.1.6","unist-util-visit":"^2.0.3","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"dependencies":{"@babel/runtime":"^7.12.1","mdast-util-to-markdown":"^0.6.5"},"gitHead":"7231816dea3b8db25190a90e483f394e2f157a10","bugs":{"url":"https://github.com/landakram/mdast-util-wiki-link/issues"},"homepage":"https://github.com/landakram/mdast-util-wiki-link#readme","_id":"mdast-util-wiki-link@0.1.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-o4CM/XxFt0Oh07j1Qxsr4glEo1W3CLkgaKQWCjImvBhpH/CFtf5V88nEWjup3YdaBzK6Yy4xy2oo4tZRkHrpmA==","shasum":"febbac8e6e7e070783fff6fdf8d68a81719e1821","tarball":"https://registry.npmjs.org/mdast-util-wiki-link/-/mdast-util-wiki-link-0.1.0.tgz","fileCount":19,"unpackedSize":1732016,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEt5wLGkMHmV/unWYg0Wv7I2vmdQBqlKTUXh3dsjrgDWAiEAlEcJ9RBRqEkzSf6eOtayFVJhfR+qIuKW9ivPJIquvEs="}]},"_npmUser":{"name":"landakram","email":"me@markhudnall.com"},"maintainers":[{"name":"landakram","email":"me@markhudnall.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-wiki-link_0.1.0_1692826111201_0.7531560226690106"},"_hasShrinkwrap":false},"0.1.1":{"name":"mdast-util-wiki-link","version":"0.1.1","description":"Parse and render wiki-style links","keywords":["remark","remark-plugin","markdown","gfm","micromark","micromark-plugin","mdast","mdast-util"],"author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"repository":{"type":"git","url":"git+https://github.com/landakram/mdast-util-wiki-link.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"directories":{"test":"test"},"scripts":{"build":"webpack","lint":"eslint src/","prepare":"npm run build","pretest":"npm run build","test":"npm run lint && NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/register":"^7.12.1","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.1.0","@types/jest":"^29.5.3","@typescript-eslint/eslint-plugin":"^6.3.0","@typescript-eslint/parser":"^6.3.0","eslint":"^8.47.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.28.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","jest":"^29.6.2","mdast-util-from-markdown":"^2.0.0","micromark":"^2.10.1","micromark-extension-wiki-link":"^0.0.4","mocha":"^8.2.0","rollup":"^2.32.0","ts-jest":"^29.1.1","ts-loader":"^9.4.4","typescript":"^5.1.6","unist-util-visit":"^2.0.3","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"dependencies":{"@babel/runtime":"^7.12.1","mdast-util-to-markdown":"^0.6.5"},"gitHead":"a21743dfb96d2deb13e4fbdafcf75dfb8a68e1b8","bugs":{"url":"https://github.com/landakram/mdast-util-wiki-link/issues"},"homepage":"https://github.com/landakram/mdast-util-wiki-link#readme","_id":"mdast-util-wiki-link@0.1.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-IQb2Ovoym4R/Q+aRO1sCYSpCvVRhis+Y43JgXwqpY1a6lTCAv70zBSLJ269ciXadC5YyEuUf0GCGA0s9UbZRGg==","shasum":"d425575dcb10406c4fb9372390e40b3d0ad0a075","tarball":"https://registry.npmjs.org/mdast-util-wiki-link/-/mdast-util-wiki-link-0.1.1.tgz","fileCount":22,"unpackedSize":29495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCviri1IcrTtd93aJQB7O/hBat+wAGXjRpWlGFRLxayKwIgNbkjnhn35qNKjUqxITce7EC1CnQZN4/1nVBosIQRolI="}]},"_npmUser":{"name":"landakram","email":"me@markhudnall.com"},"maintainers":[{"name":"landakram","email":"me@markhudnall.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-wiki-link_0.1.1_1692826299657_0.324151737237673"},"_hasShrinkwrap":false},"0.1.2":{"name":"mdast-util-wiki-link","version":"0.1.2","description":"Parse and render wiki-style links","keywords":["remark","remark-plugin","markdown","gfm","micromark","micromark-plugin","mdast","mdast-util"],"author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"repository":{"type":"git","url":"git+https://github.com/landakram/mdast-util-wiki-link.git"},"license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"directories":{"test":"test"},"scripts":{"build":"webpack","lint":"eslint src/","prepare":"npm run build","pretest":"npm run build","test":"npm run lint && NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.12.1","@babel/register":"^7.12.1","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.1.0","@types/jest":"^29.5.3","@typescript-eslint/eslint-plugin":"^6.3.0","@typescript-eslint/parser":"^6.3.0","eslint":"^8.47.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.28.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","jest":"^29.6.2","mdast-util-from-markdown":"^2.0.0","micromark":"^2.10.1","micromark-extension-wiki-link":"^0.0.4","mocha":"^8.2.0","rollup":"^2.32.0","ts-jest":"^29.1.1","ts-loader":"^9.4.4","typescript":"^5.1.6","unist-util-visit":"^2.0.3","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"dependencies":{"@babel/runtime":"^7.12.1","mdast-util-to-markdown":"^0.6.5"},"gitHead":"47d620cf59d13822ed299e78db621b920f021d4c","bugs":{"url":"https://github.com/landakram/mdast-util-wiki-link/issues"},"homepage":"https://github.com/landakram/mdast-util-wiki-link#readme","_id":"mdast-util-wiki-link@0.1.2","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-DTcDyOxKDo3pB3fc0zQlD8myfQjYkW4hazUKI9PUyhtoj9JBeHC2eIdlVXmaT22bZkFAVU2d47B6y2jVKGoUQg==","shasum":"df664e4a22ef533666f5012cf0b34ba187b9f1c0","tarball":"https://registry.npmjs.org/mdast-util-wiki-link/-/mdast-util-wiki-link-0.1.2.tgz","fileCount":22,"unpackedSize":29491,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5Ay14KM2+1BCKhzabYABAAOMrY2sKzIfyh0P7Nd8SZAiEAlGmwJsg7YMjMyfUakNCj0swNiTwQhph9P/0zRn6LLLs="}]},"_npmUser":{"name":"landakram","email":"me@markhudnall.com"},"maintainers":[{"name":"landakram","email":"me@markhudnall.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mdast-util-wiki-link_0.1.2_1696895198546_0.7394564546092715"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-18T04:17:05.820Z","0.0.1":"2020-10-18T04:17:05.965Z","modified":"2023-10-09T23:46:39.004Z","0.0.2":"2021-07-03T18:03:30.138Z","0.0.3-alpha.0":"2023-08-14T20:31:47.865Z","0.1.0":"2023-08-23T21:28:31.461Z","0.1.1":"2023-08-23T21:31:39.854Z","0.1.2":"2023-10-09T23:46:38.796Z"},"maintainers":[{"name":"landakram","email":"me@markhudnall.com"}],"description":"Parse and render wiki-style links","homepage":"https://github.com/landakram/mdast-util-wiki-link#readme","keywords":["remark","remark-plugin","markdown","gfm","micromark","micromark-plugin","mdast","mdast-util"],"repository":{"type":"git","url":"git+https://github.com/landakram/mdast-util-wiki-link.git"},"author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"bugs":{"url":"https://github.com/landakram/mdast-util-wiki-link/issues"},"license":"MIT","readme":"# mdast-util-wiki-link\n\n[![npm version](https://badge.fury.io/js/mdast-util-wiki-link.svg)](https://badge.fury.io/js/mdast-util-wiki-link) [![Build Status](https://travis-ci.org/landakram/mdast-util-wiki-link.svg?branch=master)](https://travis-ci.org/landakram/mdast-util-wiki-link)\n\nExtension for [`mdast-util-from-markdown`](https://github.com/syntax-tree/mdast-util-from-markdown) and\n[`mdast-util-to-markdown`](https://github.com/syntax-tree/mdast-util-to-markdown) to support `[[Wiki Links]]`.\n\n* Parse wiki-style links and render them as anchors\n* Differentiate between \"new\" and \"existing\" wiki links by giving the parser a list of existing permalinks\n* Parse aliased wiki links i.e `[[Real Page:Page Alias]]`\n\nUsing [remark](https://github.com/remarkjs/remark)? You might want to use \n[`remark-wiki-link`](https://github.com/landakram/remark-wiki-link) instead of using this package directly.\n\n## Usage\n\n### Markdown to AST\n\n```javascript\nimport fromMarkdown from 'mdast-util-from-markdown'\nimport { syntax } from 'micromark-extension-wiki-link'\nimport * as wikiLink from 'mdast-util-wiki-link'\n\nlet ast = fromMarkdown('[[Test Page]]', {\n  extensions: [syntax()],\n  mdastExtensions: [wikiLink.fromMarkdown()]\n})\n```\n\nThe AST node will look like this:\n\n```javascript\n{\n    value: 'Test Page',\n    data: {\n        alias: 'Test Page',\n        permalink: 'test_page',\n        exists: false,\n        hName: 'a',\n        hProperties: {\n            className: 'internal new',\n            href: '#/page/test_page'\n        },\n        hChildren: [{\n            type: 'text',\n            value: 'Test Page'\n        }]\n    }\n}\n```\n\n* `data.alias`: The display name for this link\n* `data.permalink`: The permalink for this page. This permalink is computed from `node.value` using `options.pageResolver`, which can be passed in when initializing the plugin. \n* `data.exists`: Whether the page exists. A page exists if its permalink is found in `options.permalinks`, passed when initializing the plugin.\n* `data.hProperties.className`: Classes that are automatically attached to the `a` when it is rendered as HTML. These are configurable with `options.wikiLinkClassName` and `options.newClassName`. `options.newClassName` is attached when `data.exists` is false.\n* `data.hProperties.href`: `href` value for the rendered `a`. This `href` is computed using `options.hrefTemplate`.\n\nThe `hName` and other `h` fields provide compatibility with [`rehype`](https://github.com/rehypejs/rehype).\n\n### AST to Markdown\n\nTaking the `ast` from the prior example, let's go back to markdown:\n\n```javascript\nimport { fromMarkdown } from 'mdast-util-from-markdown'\nimport * as wikiLink from 'mdast-util-wiki-link'\n\nlet markdownString = toMarkdown(ast, { extensions: [wikiLink.toMarkdown()] }).trim()\nconsole.log(markdownString)\n// [[Wiki Link]]\n```\n\n### Configuration options\n\nBoth `fromMarkdown` and `toMarkdown` accept configuration as an object.\n\nFor example, one may configure `fromMarkdown` like so:\n\n```javascript\nlet ast = fromMarkdown('[[Test Page]]', {\n  extensions: [syntax()],\n  mdastExtensions: [wikiLink.fromMarkdown({ permalinks: ['wiki_page'] })] // <--\n})\n```\n\n#### `fromMarkdown`\n\n* `options.permalinks [String]`: An array of permalinks that should be considered existing pages. If a wiki link is parsed and its permalink matches one of these permalinks, `node.data.exists` will be true.\n* `options.pageResolver (pageName: String) -> [String]`: A function that maps a page name to an array of possible permalinks. These possible permalinks are cross-referenced with `options.permalinks` to determine whether a page exists. If a page doesn't exist, the first element of the array is considered the permalink.\n\n  The default `pageResolver` is:\n\n```javascript\n(name) => [name.replace(/ /g, '_').toLowerCase()]\n```\n\n* `options.hrefTemplate (permalink: String) -> String`: A function that maps a permalink to some path. This path is used as the `href` for the rendered `a`.\n\n  The default `hrefTemplate` is:\n  \n```javascript\n(permalink) => `#/page/${permalink}`\n```\n\n* `options.wikiLinkClassName [String]`: a class name that is attached to any rendered wiki links. Defaults to `\"internal\"`.\n* `options.newClassName [String]`: a class name that is attached to any rendered wiki links that do not exist. Defaults to `\"new\"`.\n\n#### `toMarkdown`\n\n* `options.aliasDivider [String]`: a string to be used as the divider for aliases. See the section below on [Aliasing pages](#aliasing-pages). Defaults to `\":\"`.\n\n### Aliasing pages\n\nAliased pages are supported with the following markdown syntax: \n\n```\n[[Real Page:Page Alias]]\n```\n\nAnd will produce this HTML when rendered:\n\n```\n<a class=\"internal new\" href=\"#/page/real_page\">Page Alias</a>\n```\n\n\n\n\n\n","readmeFilename":"README.md"}