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

Strikethrough and CommonMarker::Node initialization #191

Closed
paydaylight opened this issue Sep 21, 2022 · 1 comment
Closed

Strikethrough and CommonMarker::Node initialization #191

paydaylight opened this issue Sep 21, 2022 · 1 comment

Comments

@paydaylight
Copy link

paydaylight commented Sep 21, 2022

Are there any ways of initializing just a strikethrough node?

Like:

CommonMarker::Node.new(:strikethrough)

From docs I know that I can pass to constructor types supported out of the box, but not ones that are from extensions.

@gjtorikian
Copy link
Owner

If I'm understanding your question correctly, no, there is not. You can iterate over a document or take different actions when rendering, but you cannot just add nodes that aren't already present in the commonmark source text.

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

2 participants