Skip to content

Commit

Permalink
docs(readme): fixing wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Sep 29, 2022
1 parent e438f8a commit d68a01f
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 129 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ remark()
```cjs
// docusaurus.config.js
module.exports = async function createConfig() {
const { remarkKroki } = await import('mdx-mermaid');
const { remarkKroki } = await import('remark-kroki');

return {
presets: [
Expand All @@ -65,12 +65,14 @@ module.exports = async function createConfig() {

- type: string
- default: http://localhost:8000
- example: <https://kroki.io>

Using self host server by default. Set `https://kroki.io` to use free service.
Using self host server by default. Set <https://kroki.io> to use free service.

### Options.headers

- type: object
- default: `{}`

HTTP headers to send to the server for custom authentication.

Expand Down
4 changes: 2 additions & 2 deletions lib/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export function remarkKroki({
temp.push(transform({ node, server, headers, output }));
});

for (const action of temp) {
await action;
// eslint-disable-next-line no-empty
for await (const _ of temp) {
}
};
}
Loading

0 comments on commit d68a01f

Please sign in to comment.