Skip to content

Commit

Permalink
Merge pull request #184 from mermaid-js/fix/format-text-for-critical-…
Browse files Browse the repository at this point in the history
…section-tcf

Format text for Critical, Section and TCF.
  • Loading branch information
MrCoder authored Sep 5, 2024
2 parents e7ef839 + 49acecb commit 18f1b4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default {
const from = computed(() => props.context.Origin());
const critical = computed(() => props.context.critical());
const braceBlock = computed(() => critical.value?.braceBlock());
const atom = computed(() => critical.value?.atom()?.getText());
const atom = computed(() => critical.value?.atom()?.getFormattedText());
const blockInCritical = computed(() => braceBlock.value?.block());
const label = computed(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
const from = computed(() => props.context.Origin());
const section = computed(() => props.context.section());
const braceBlock = computed(() => section.value?.braceBlock());
const atom = computed(() => section.value?.atom()?.getText());
const atom = computed(() => section.value?.atom()?.getFormattedText());
const blockInSection = computed(() => braceBlock.value?.block());
const label = computed(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default {
},
methods: {
exception(ctx) {
return ctx?.invocation()?.parameters().getText();
return ctx?.invocation()?.parameters().getFormattedText();
},
blockInCatchBlock(ctx) {
return ctx?.braceBlock()?.block();
Expand Down

0 comments on commit 18f1b4d

Please sign in to comment.