Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to turned off autonumber via the diagram code as in the diagram? 8.8.3 delete autonumber is no effect #1847

Closed
castlesnow opened this issue Jan 7, 2021 · 14 comments
Labels
Graph: Sequence Status: Triage Needs to be verified, categorized, etc Type: Other Not an enhancement or a bug Type: Question

Comments

@castlesnow
Copy link

No description provided.

@castlesnow castlesnow added Contributor needed Type: Other Not an enhancement or a bug labels Jan 7, 2021
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Jan 7, 2021
@GDFaber
Copy link
Member

GDFaber commented Jan 23, 2021

Hi, you could try setting showSequenceNumbers to true or false in the configs, depending on what you need.
Please refer to the sequenceDiagram documentation for further details.

@elf-pavlik
Copy link

Please refer to the sequenceDiagram documentation for further details.

It states

It can also be be turned on via the diagram code as in the diagram:

sequenceDiagram
    autonumber

But now on seems to be default so there doesn't seem to be a way to turn it off via the diagram code.

@LuPro
Copy link

LuPro commented Dec 8, 2021

I'm having a similar issue. Once I turn on autonumber using the diagram code it doesn't stop autonumbering no matter what I do (even setting sequence: { showSequenceNumbers: false } doesn't deactivate it).
I'm using mermaid from within Obsidian.md and when I restart the entire program the numbering goes away

The same behavior is seen on the live edit page (also with reloading removing autonumber again).

This feels very much like a bug and not some feature I'm misunderstanding, but I'm happy to be corrected on that front :)

@Yash-Singh1
Copy link
Member

I can't reproduce on v8.13.4 on the live editor page:

@LuPro
Copy link

LuPro commented Dec 9, 2021

screenrecording-2021-12-09_02.02.41.mp4

this is what happens for me every time I try. I add autonumber, it adds the numbers, I remove autonumber the numbers stay until I reload the page.
I'm on Firefox 95 but I don't think that's the issue as Obsidian.md is an Electron app and I have the exact same issue there as well. Maybe it's the OS? Wouldn't know what the OS could do to cause this, but I'm on Linux Manjaro XFCE (I can also test Manjaro KDE and Windows 10 if you want/need me to)

@underscore-ex
Copy link

Can confirm that this is happening in Notion app too which uses mermaid

@darena-patrick
Copy link

this happens with Draw.io too

@arisc097
Copy link

we need way to reset the count similar to how plantuml offers.

@darena-patrick
Copy link

we need way to reset the count similar to how plantuml offers.

i'd benefit from this as well - perhaps open a new issue / feature request?

@Yash-Singh1
Copy link
Member

Is this bug still a problem in v9.0.0 on https://mermaid.live/ ?

@mdeliw
Copy link

mdeliw commented Apr 19, 2022

we need way to reset the count similar to how plantuml offers.

i'd benefit from this as well - perhaps open a new issue / feature request?

Done #2952

@butfool
Copy link

butfool commented May 5, 2022

It also appeared in Typora. Typora#5216

@doubler84
Copy link

doubler84 commented Sep 13, 2022

Also on GitLab Community Edition 13.12.2 autonumber is activated by default and I can't switch it off 😔

@sidharthv96
Copy link
Member

Issue is fixed now in live editor.

@doubler84 If autonumber is activated by default, you can try using the yaml config to set it to false. That should override the site config.

The order of the configs applied are

  1. Default config
  2. Site config
  3. YAML/Directives
  4. Diagram code
Screen.Recording.2023-09-16.at.2.31.13.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: Sequence Status: Triage Needs to be verified, categorized, etc Type: Other Not an enhancement or a bug Type: Question
Projects
None yet
Development

No branches or pull requests