From 370aa5817ed324d38453685a61ffdda9f961ee3e Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 7 Jul 2025 15:34:31 -0700 Subject: [PATCH] webp_js/README.md: add some more code formatting (``) Bug: webp:427525168 Change-Id: I979d0e7406ecc482a5ebb7d94cc50117f8384acc --- webp_js/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webp_js/README.md b/webp_js/README.md index ae9ce8f0..64da0d2e 100644 --- a/webp_js/README.md +++ b/webp_js/README.md @@ -13,7 +13,7 @@ Emscripten and CMake. - install the Emscripten SDK following the procedure described at: https://emscripten.org/docs/getting_started/downloads.html#installation-instructions-using-the-emsdk-recommended After installation, you should have some global variable positioned to the - location of the SDK. In particular, $EMSDK should point to the top-level + location of the SDK. In particular, `$EMSDK` should point to the top-level directory containing Emscripten tools. - configure the project 'WEBP_JS' with CMake using: @@ -23,12 +23,12 @@ Emscripten and CMake. emcmake cmake -DWEBP_BUILD_WEBP_JS=ON ../ ``` -- compile webp.js using 'emmake make'. +- compile webp.js using `emmake make`. - that's it! Upon completion, you should have the 'webp.js', 'webp.js.mem', 'webp_wasm.js' and 'webp_wasm.wasm' files generated. -The callable JavaScript function is WebPToSDL(), which decodes a raw WebP +The callable JavaScript function is `WebPToSDL()`, which decodes a raw WebP bitstream into a canvas. See webp_js/index.html for a simple usage sample (see below for instructions).