Compare commits

..

2 Commits

Author SHA1 Message Date
hypercross f736b7309e fix: case 2026-03-06 17:52:30 +08:00
hypercross bf18808aa8 fix: regex? 2026-03-06 17:51:22 +08:00
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ tag: md-deck
body: ./npcs.csv
layers: body:1,6-5,8
```
:md-deck[./names.csv]{size="54x86" grid="5x8" bleed="1" padding="2" layers="name1:1,1-2,2f12 name2:4,7-5,8f12s num1:1,3-2,4f12 num2:4,5-5,6f12s"}
> [!NOTE]
> Highlights information that users should take into account, even when skimming.

2
content/names.csv Normal file
View File

@ -0,0 +1,2 @@
name1,name2,num1,num2
balhe,bler,1,2
1 name1 name2 num1 num2
2 balhe bler 1 2

View File

@ -20,8 +20,8 @@ export function parseLayers(layersStr: string): Layer[] {
y1: parseInt(match[3]),
x2: parseInt(match[4]),
y2: parseInt(match[5]),
fontSize: match[7] ? parseFloat(match[7]) : undefined,
orientation: match[8] as 'n' | 's' | 'e' | 'w' | undefined
fontSize: match[6] ? parseFloat(match[6]) : undefined,
orientation: match[7] as 'n' | 's' | 'e' | 'w' | undefined
});
}