The JavaScript interface sees arguments as follows:where args is a dict such that:
function macro_name(args)
- optional arguments have the key/value pairs explicitly given on the call
- mandatory arguments have a key documented by the API, and the value on the call.For example, the link API names its arguments
href
andtext
.