Parse labels from environment options (#24189)
GitOrigin-RevId: e51eed7521f6e32e614f8b38092a0b0219f7f186
This commit is contained in:
@@ -19,6 +19,8 @@ describe('MetaHandler', function () {
|
||||
'\\label{ccc}%bar', // ccc should be in the returned labels
|
||||
'\\label{ddd} % bar', // ddd should be in the returned labels
|
||||
'\\label{ e,f,g }', // e,f,g should be in the returned labels
|
||||
'\\begin{lstlisting}[label=foo, caption={Test}]', // foo should be in the returned labels
|
||||
'\\begin{lstlisting}[label={lst:foo},caption={Test}]', // lst:foo should be in the returned labels
|
||||
]
|
||||
|
||||
this.docs = {
|
||||
@@ -85,7 +87,7 @@ describe('MetaHandler', function () {
|
||||
)
|
||||
|
||||
expect(result).to.deep.equal({
|
||||
labels: ['aaa', 'ccc', 'ddd', 'e,f,g'],
|
||||
labels: ['aaa', 'ccc', 'ddd', 'e,f,g', 'foo', 'lst:foo'],
|
||||
packages: {
|
||||
foo: this.packageMapping.foo,
|
||||
baz: this.packageMapping.baz,
|
||||
|
||||
Reference in New Issue
Block a user