Closed Ziqi-Yang closed 11 months ago
When writing my assignment today, I noticed that label and reference can starts with number, like <123>, @123. Typst Source Code
<123>
@123
'@' => self.ref_marker(), // ... _ => self.text(),
ref_marker appears before text and the definition of ref_marker uses only is_id_continue function.
ref_marker
text
is_id_continue
I'm busy with academic stuffs recent months. Sorry for lazy contribution.
Find error in this fix: it allows space inside label, <el psy> or @ el(reference only allows the space at the beginning), while official online application doesn't allow this rule.
<el psy>
@ el
When writing my assignment today, I noticed that label and reference can starts with number, like
<123>
,@123
. Typst Source Coderef_marker
appears beforetext
and the definition of ref_marker uses onlyis_id_continue
function.I'm busy with academic stuffs recent months. Sorry for lazy contribution.