From 1cd30205d977635f339b1d371db87e8b70c2b6a9 Mon Sep 17 00:00:00 2001 From: smed79 <1873139+smed79@users.noreply.github.com> Date: Sat, 5 Nov 2022 19:32:38 +0100 Subject: [PATCH] Update README.md (#844) formatting + syntax highlighting code blocks --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 16b68833..2433c622 100644 --- a/README.md +++ b/README.md @@ -24,19 +24,19 @@ Please let us know with an issue or a discussions if you wish to contribute. Thanks to **Netlify**, you can access the following builds from your favorite browser: -[Try SVGEdit V7 (master branch on github)](https://svgedit.netlify.app/editor/index.html) - -[Try SVGEdit V7 (latest published version on npm)](https://unpkg.com/svgedit@latest/dist/editor/index.html) +- [Try SVGEdit V7 (master branch on github)](https://svgedit.netlify.app/editor/index.html) +- [Try SVGEdit V7 (latest published version on npm)](https://unpkg.com/svgedit@latest/dist/editor/index.html) ### Prior V7: We recommand using the V7 version but for older browsers or some abandoned features, you may need to access to old versions of SVGEdit. -[Try SVGEdit 6.1.0 here](https://60a0000fc9900b0008fd268d--svgedit.netlify.app/editor/index.html) -[Try SVGEdit 5.1.0 here](https://unpkg.com/svgedit@5.1.0/editor/svg-editor.html) +- [Try SVGEdit 6.1.0 here](https://60a0000fc9900b0008fd268d--svgedit.netlify.app/editor/index.html) +- [Try SVGEdit 5.1.0 here](https://unpkg.com/svgedit@5.1.0/editor/svg-editor.html) -Additional tip: you may try a version released on NPM using unpkg for example with version 3.2.0: -[https://unpkg.com/svgedit@3.2.0/editor/svg-editor.html](https://unpkg.com/svgedit@3.2.0/editor/svg-editor.html) +Additional tip: you may try a version released on NPM using unpkg for example with version 3.2.0 + +- [https://unpkg.com/svgedit@3.2.0/editor/svg-editor.html](https://unpkg.com/svgedit@3.2.0/editor/svg-editor.html) ## I want to host SVGEdit in my environment @@ -70,7 +70,7 @@ If you intend to contribute on a regular basis, let us know so we can add you in V7 is changing significantly the way to integrate and customize SVG-Edit. You can have a look to index.html to see how you can insert a div element into your HTML code and inject the editor into the div. -``` +```html @@ -84,7 +84,7 @@ V7 is changing significantly the way to integrate and customize SVG-Edit. You ca ``` + ## I want to build my own svg editor You can just use the underlying canvas and use it in your application with your favorite framework. See example in the demos folder or the svg-edit-react repository. @@ -124,7 +125,7 @@ To activate: - "npm run build" from the extension folder "src/editor/react-extensions/react-test" in order to create the bundle for the extension. - modify "index.html" to activate the extension as a userExtensions -``` +```javascript svgEditor.setConfig({ allowInitialUserOverride: true, extensions: [], @@ -142,4 +143,5 @@ svgEditor.setConfig({ # Hosting SVGedit versions are deployed to: + [![Deploys by Netlify](https://www.netlify.com/img/global/badges/netlify-color-accent.svg)](https://www.netlify.com)