diff --git a/README.md b/README.md index 44df7868..ca52dcdd 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ or ## Usage -Use on browser with ES6 modules: +### Use on browser with ES6 modules: ```javascript ``` -Use on browser with AMD: +### Use on browser with AMD: ```javascript @@ -97,7 +97,7 @@ Use on browser with AMD: ``` -Use on browser with UMD: +### Use on browser with UMD: ```html @@ -117,7 +117,7 @@ Use on browser with UMD: ``` -Use outside the browser with CommonJS: +### Use outside the browser with CommonJS: ```javascript const { MultiFormatReader, BarcodeFormat } = require('@zxing/library/esm5'); // use this path since v0.5.1 @@ -137,7 +137,7 @@ const binaryBitmap = new BinaryBitmap(new HybridBinarizer(luminanceSource)); reader.decode(binaryBitmap); ``` -#### Browser Support +## Browser Support The browser layer is using the [MediaDevices](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices) web API which is not supported by older browsers. @@ -289,7 +289,7 @@ codeReader .catch(err => console.error(err)); ``` -### Barcode generation +## Barcode generation To generate a QR Code SVG image include 'zxing.qrcodewriter.min.js' from `build/vanillajs`. You will need to include an element where the SVG element will be appended: @@ -307,11 +307,11 @@ const svgElement = codeWriter.write(input, 300, 300); codeWriter.writeToDom('#result', input, 300, 300); ``` -### Contributing +## Contributing See [Contributing Guide](https://github.com/zxing-js/library/blob/master/CONTRIBUTING.md) for information regarding porting approach and reasoning behind some of the approaches taken. -### Contributors +## Contributors Special thanks to all the contributors who have contributed for this project. We heartly thankful to you all.