From 93577619b22bf8168a4c458d1c81059f6240bdf8 Mon Sep 17 00:00:00 2001 From: Bryan Date: Fri, 18 Oct 2024 20:09:29 +0100 Subject: [PATCH] add documentation --- docs/syntax/packet.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/syntax/packet.md b/docs/syntax/packet.md index 5eab819105..5feddfcd41 100644 --- a/docs/syntax/packet.md +++ b/docs/syntax/packet.md @@ -20,6 +20,7 @@ This diagram type is particularly useful for developers, network engineers, educ packet-beta start: "Block name" %% Single-bit block start-end: "Block name" %% Multi-bit blocks +16bits: "Block name" %% Auto appends to previous block without specifying start ... More Fields ... ``` @@ -82,6 +83,16 @@ title UDP Packet 48-63: "Checksum" 64-95: "Data (variable length)" ``` +Or you can write this as +```mermaid-example +packet-beta +title UDP Packet +16bits: "Source Port" +16bits: "Destination Port" +16bits: "Length" +16bits: "Checksum" +64-95: "Data (variable length)" +``` ```mermaid packet-beta