refactor: remove as= override and render data-spark at runtime
- Drop resolveBlockAs and the as= attribute; scanDoc now switches directly on role and warns on unknown roles instead of silently stripping - md-table derives data-spark from its loaded CSV via parseSparkTableCsv; delete injectSparkDirectives and the second registry pass so pathIndex is exactly scanDoc output - Align spark-table dice header regex with isSparkTableHeader
This commit is contained in:
@@ -53,7 +53,9 @@ export interface SparkTableMeta {
|
||||
// CSV parsing
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
const DICE_HEADER_RE = /^d\d+$/i;
|
||||
// Matches the scanner's `isSparkTableHeader` (content-registry): plain dice,
|
||||
// counts, and modifiers all count as spark-table first columns.
|
||||
const DICE_HEADER_RE = /^\d*d\d+(?:[+-]\d+)?$/i;
|
||||
|
||||
/**
|
||||
* Parse a CSV string into a SparkTableMeta.
|
||||
|
||||
Reference in New Issue
Block a user