Package Exports
- @uiw/codemirror-extensions-hyper-link
- @uiw/codemirror-extensions-hyper-link/cjs/index.js
- @uiw/codemirror-extensions-hyper-link/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@uiw/codemirror-extensions-hyper-link) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Hyper link Extensions
Hyper link Extensions for CodeMirror6.
Install
npm install @uiw/codemirror-extensions-hyper-link --saveUsage
import CodeMirror from '@uiw/react-codemirror';
import { hyperLink } from '@uiw/codemirror-extensions-hyper-link';
const code = `https://uiwjs.github.io/react-codemirror`;
function App() {
return <CodeMirror value={code} height="200px" extensions={[hyperLink]} />;
}
export default App;import { EditorView } from '@codemirror/view';
import { EditorState } from '@codemirror/state';
import { hyperLink } from '@uiw/codemirror-extensions-hyper-link';
const code = `https://uiwjs.github.io/react-codemirror`;
const state = EditorState.create({
doc: code,
extensions: [hyperLink],
});
const view = new EditorView({
parent: document.querySelector('#editor'),
state,
});Contributors
As always, thanks to our amazing contributors!
Made with github-action-contributors.
License
Licensed under the MIT License.