A plugin for obsidian that generates and displays barcodes in different variations. It uses the JsBarcode plugin to generate the barcode.
For a plugin that generates qr codes, you might check this repository.
You can activate this plugin within Obsidian by doing the following:
- Open Settings > Comunity Plugins;
- Make sure the Restricted Mode is off;
- Click on Browse community plugins;
- Search for "Barcode";
- Click Install;
- Don't forget to enable it before using.
This plugin works on mobile as well. The installation processs is the same as on desktop.
You can download this plugin manually from the latest releases. Copy the main.js
and manifest.json
into <vault>/.obsidian/plugins/obsidian-barcode
. Then you can enable the plugin from Comunity Plugins
in obsidian.
For an insertion of the default barcode, you can use the following codeblock structure:
```barcode
content
```
If you want to select a specific type of barcode, you can type dash and then the barcode types:
```barcode-code128
content
```
If you want to make a barcode different from the sandard settings, this can be done using barcode-custom
:
```barcode-custom
lineColor: #fff
height: 10
format: pharmacode
1341
```
Note: after changing the options, the barcodes on the page won't be refreshed.
As for now, the following barcodes are supported:
Note that some barcodes have certain limitation of the content, and if the provided contents doesn't match them, the barcode won't be displayed. For more details about the barcodes, you can check out this resource.