From 62f5ad2b9c89e322dbbb97094eb5360291e8645f Mon Sep 17 00:00:00 2001 From: Max Franz Date: Mon, 9 Dec 2024 10:35:16 -0500 Subject: [PATCH] Miscellaneous fixes in the documentation --- documentation/md/extensions.md | 20 ++++++++++---------- documentation/md/intro.md | 4 +++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/documentation/md/extensions.md b/documentation/md/extensions.md index da872880d..193f08e69 100644 --- a/documentation/md/extensions.md +++ b/documentation/md/extensions.md @@ -133,17 +133,17 @@ cytoscape('collection', 'fooBar', function(){ 1. Use [rollup-starter-lib](https://github.com/rollup/rollup-starter-lib) to create the project's scaffolding. Alternatively, manually generate the project configuration files with your favourite bundler. 1. Use [Babel](https://babeljs.io) if you want to support older browsers with your extension. The `rollup-starter-lib` repo has an example in the [`babel` branch](https://github.com/rollup/rollup-starter-lib/tree/babel). 1. The default export of your extension should be a registration function, e.g.: - ``` - export default function register(cytoscape){ - cytoscape('collection', 'fooBar', fooBarFunction); - } - ``` + ``` + export default function register(cytoscape){ + cytoscape('collection', 'fooBar', fooBarFunction); + } + ``` 1. You may want to support automatic registration for consumers who use traditional `