1
0
Fork 0

Revert "chore: Linting for markdown and js"

This reverts commit 1c92e0f655.
This commit is contained in:
joostdecock 2021-10-17 18:26:00 +02:00
parent 994874fa72
commit cba1ab19c8
6627 changed files with 25791 additions and 24211 deletions

View file

@ -1,13 +1,12 @@
***
---
title: Macros
order: 90
---------
---
Plugin structure for macros is similar, with a few changes:
* Rather than the hook name, you provide the macro name (that you choose yourself)
* The context (`this`) of a macro method is **always** a [Part](/reference/api/part) object.
- Rather than the hook name, you provide the macro name (that you choose yourself)
- The context (`this`) of a macro method is **always** a [Part](/reference/api/part) object.
Apart from these, the structure is very similar:
@ -36,7 +35,7 @@ export default {
}
```
Did you figure out what this plugin does?
Did you figure out what this plugin does?
It provides a `box` macro that draws a box on our pattern in a given location with a give size.
We can use it like this:
@ -49,7 +48,7 @@ macro('box', {
});
```
Obviously, you can expect to learn how to call a macro in its documentation,
Obviously, you can expect to learn how to call a macro in its documentation,
rather than have to comb through its code.
<Note>
@ -62,3 +61,4 @@ to a macro needs to be contained in a single argument.
Typically, you use a single plain object to configure the macro.
</Note>