From c124f7767db5c4cbaeee64983c186af424039a86 Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Thu, 3 Oct 2019 17:37:38 +0800 Subject: [PATCH] Fix api.md --- docs/api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api.md b/docs/api.md index 293a673..8e35ccf 100644 --- a/docs/api.md +++ b/docs/api.md @@ -184,7 +184,7 @@ Figures out what words are in `image`, where the words are in `image`, etc. **Examples:** -``` +```javascript const { createWorker } = Tesseract; (async () => { const worker = createWorker(); @@ -198,7 +198,7 @@ const { createWorker } = Tesseract; With rectangles -``` +```javascript const { createWorker } = Tesseract; (async () => { const worker = createWorker(); @@ -226,7 +226,7 @@ Worker.detect() does OSD (Orientation and Script Detection) to the image instead **Examples:** -``` +```javascript const { createWorker } = Tesseract; (async () => { const worker = createWorker(); @@ -260,7 +260,7 @@ createScheduler() is a factory function to create a scheduler, a scheduler manag **Examples:** -``` +```javascript const { createScheduler } = Tesseract; const scheduler = createScheduler(); ```