diff --git a/docs/getting-started.md b/docs/getting-started.md
index ecf4ebf..ccf053a 100644
--- a/docs/getting-started.md
+++ b/docs/getting-started.md
@@ -12,7 +12,7 @@ or download the single file compiled version from [the github repository](https:
```javascript
// If you're using NPM/Yarn, then you need
// to require the library first
-const anchorme = require("anchorme"); // like this
+const anchorme = require("anchorme").default; // like this
import anchorme from "anchorme"; // or this
// the library will export a single function
@@ -26,24 +26,24 @@ const resultC = anchorme({
options: {
attributes: {
target: "_blank",
- class: "detected"
- }
+ class: "detected",
+ },
},
// and extensions
extensions: [
// an extension for hashtag search
{
test: /#(\w|_)+/gi,
- transform: string =>
- `${string}`
+ transform: (string) =>
+ `${string}`,
},
// an extension for mentions
{
test: /@(\w|_)+/gi,
- transform: string =>
- `${string}`
- }
- ]
+ transform: (string) =>
+ `${string}`,
+ },
+ ],
});
```