aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/md/docs/0xjs
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-04 19:54:16 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-04 23:32:03 +0800
commitc700046b7673a0f470c8d8abeec3cf873049a78a (patch)
treec7bdfc8e6d17d587f47ee23ef4a295ed192ae633 /packages/website/md/docs/0xjs
parent326a6b729fe6cf96f0b4787d84903282738b6863 (diff)
downloaddexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.gz
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.bz2
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.lz
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.xz
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.tar.zst
dexon-sol-tools-c700046b7673a0f470c8d8abeec3cf873049a78a.zip
Apply prettify on json and md files
Diffstat (limited to 'packages/website/md/docs/0xjs')
-rw-r--r--packages/website/md/docs/0xjs/async.md9
-rw-r--r--packages/website/md/docs/0xjs/installation.md4
2 files changed, 8 insertions, 5 deletions
diff --git a/packages/website/md/docs/0xjs/async.md b/packages/website/md/docs/0xjs/async.md
index 63924c76c..8abaef331 100644
--- a/packages/website/md/docs/0xjs/async.md
+++ b/packages/website/md/docs/0xjs/async.md
@@ -1,6 +1,7 @@
0x.js is a promise-based library. This means that whenever an asynchronous call is required, the library method will return a native Javascript promise. You can therefore choose between using `promise` or `async/await` syntax when calling our async methods.
-*Async/await syntax (recommended):*
+_Async/await syntax (recommended):_
+
```javascript
try {
var availableAddresses = await zeroEx.getAvailableAddressesAsync();
@@ -9,9 +10,11 @@ try {
}
```
-*Promise syntax:*
+_Promise syntax:_
+
```javascript
-zeroEx.getAvailableAddressesAsync()
+zeroEx
+ .getAvailableAddressesAsync()
.then(function(availableAddresses) {
console.log(availableAddresses);
})
diff --git a/packages/website/md/docs/0xjs/installation.md b/packages/website/md/docs/0xjs/installation.md
index 457b27a04..5f5c9137e 100644
--- a/packages/website/md/docs/0xjs/installation.md
+++ b/packages/website/md/docs/0xjs/installation.md
@@ -1,6 +1,6 @@
0x.js ships as both a [UMD](https://github.com/umdjs/umd) module and a [CommonJS](https://en.wikipedia.org/wiki/CommonJS) package.
-#### CommonJS *(recommended)*:
+#### CommonJS _(recommended)_:
**Install**
@@ -11,7 +11,7 @@ npm install 0x.js --save
**Import**
```javascript
-import {ZeroEx} from '0x.js';
+import { ZeroEx } from '0x.js';
```
#### UMD: