mirror of
https://github.com/natri0/obsidian-bytefield.git
synced 2026-07-22 12:30:26 +00:00
No description
| .gitignore | ||
| bun.lock | ||
| main.ts | ||
| manifest.json | ||
| package.json | ||
| readme.md | ||
bytefield
a simple Obsidian plugin adding support for byte-field diagrams.
usage
a byte-field diagram is one of those tables that show offsets of fields in e.g. network packets:
to create one, simply make a codeblock and add your fields.
```bytediag
field1: 3
field2: 4
field3: 1
```
every line has to contain the name of the field, : as the delimiter and the length of the field in bytes. lines that do not contain : are silently ignored, so feel free to use them as comments.
also, it is possible to change the offset where the diagram starts:
```bytediag
!curOffset: 7
field1: 5
field2: 3
field3: 4
```
fields are wrapped around if they're longer than the row: