Skip to content

Template with 'calc' code blocks incorrectly applied to Pascal or Clojure in existing graphs which is created for months #872

@mentho-mh

Description

@mentho-mh

Search first

  • I searched and no similar issues were found

What Happened?

When applying a template that contains a calc code block in an older graph, the code block's language is incorrectly identified as pascal or Clojure instead of calc, and calc not existed in language list. However, this issue does not occur in a newly created graph using the exact same template, where it correctly defaults to calc.

Reproduce the Bug

  1. In an existing/old graph, create or use a template that includes a code block: calc ... .
  2. Apply this template to a new block.
  3. Observe that the code block language header shows pascal.
  4. Create a completely new graph and repeat the same steps; the code block correctly shows calc.

Expected Behavior

No response

Screenshots

No response

Files

No response

Browser, Desktop or Mobile Platform Information

macOS Logseq App nightly 1b9a199, Web 3ae4d92

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions