Skip to content

Commit

Permalink
Fix #4153 outline for macros and envs in doctex
Browse files Browse the repository at this point in the history
  • Loading branch information
jlelong committed Jan 31, 2024
1 parent 285e887 commit ce462fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/outline/structure/latex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async function parseNode(
element = {
type: TeXElementType.Environment,
name: node.env,
label: `${node.env.charAt(0).toUpperCase()}${node.env.slice(1)}` + (config.caption && caption ? `: ${caption}` : ''),
label: `${node.env.charAt(0).toUpperCase()}${node.env.slice(1)}` + (config.caption && caption ? `: ${caption.content}` : ''),
...attributes
}
} else if ((node.type === 'environment' || node.type === 'mathenv') && config.macros.envs.includes(node.env)) {
Expand Down

0 comments on commit ce462fd

Please sign in to comment.