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

Automatically add IDs to headings #76

Open
IndigoCurnick opened this issue Aug 1, 2023 · 6 comments
Open

Automatically add IDs to headings #76

IndigoCurnick opened this issue Aug 1, 2023 · 6 comments

Comments

@IndigoCurnick
Copy link

Hi!

In older versions of the crate, HTML headings would automatically be assigned an id based on the markdown heading

For example,

# Hello World

would become

<h1 id="hello_world">Hello World</h1>

Is there an option for this? If not, would it be possible to support it?

Thanks :)

@wooorm
Copy link
Owner

wooorm commented Aug 1, 2023

Hey!

No, no option.

I’d prefer to land plugins first (see other issues). Then those could solve this nicely!

@IndigoCurnick
Copy link
Author

I was just checking out issue #32 which does seem to be what we want here, I think?

@wooorm
Copy link
Owner

wooorm commented Aug 1, 2023

yep, things like that!

@Liboq
Copy link

Liboq commented Nov 2, 2023

I was just checking out issue #32 which does seem to be what we want here, I think?我刚刚查看了问题 #32,我认为这似乎是我们想要的?

hey,How did you accomplish it,I met the same problem

@IndigoCurnick
Copy link
Author

Not quite yet, looks like #32 is still in development and this will need to wait till then unfortunately. I did write something which inserts them after the fact, but it's a little complicated and not really that good

@tsurumi-yizhou
Copy link

Either the customized "class" not work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants