IOweb/node_modules/satteri/dist/mdast/column-align.js
2026-07-03 15:07:38 -05:00

6 lines
285 B
JavaScript

/** Decode a table column-alignment byte — shared by the generated walk decoder
* and the snapshot reader so the mapping lives in one place. */
const ALIGN_NAMES = [null, "left", "right", "center"];
export function decodeColumnAlign(byte) {
return ALIGN_NAMES[byte] ?? null;
}