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

support for AsciiDoc: tags in header attribute :keywords: and maybe in document attributes like :tags: #93

Open
aisbergde opened this issue Sep 27, 2022 · 0 comments

Comments

@aisbergde
Copy link

aisbergde commented Sep 27, 2022

I converted all my notes from Markdown to AsciiDoc. There it works with the tags in comments too. But the tags are only recognized by vscode-nested-tags.

If you could use header attributes or document attributes for tags too, then the content would be visible and usable for "normal" AsciiDoc processors too. And the usage would be clear and simple. This would be the equivalent of YAML headers.

.content of test.vscode-nested-tags.4.adoc

= Test vscode-nested-tags in AsciiDoc
FirstName LastName; SecondFirstName SecondAuthor
//header attribute :keywords: is not supported by vscode-nested-tags
:keywords: @Someday, +home, +work, #hashtag, topic, here/is/a/nested/example, project.task.nested

This is the document.

Tags in comments are supported:
// @nested-tags:topic2,here2/is/a/nested/example

//document attribute :tags: (or whatever) are not supported by vscode-nested-tags
:tags: topic3, here3/is/a/nested/example, project.task.nested

Tags can be extended:
// @nested-tags:topic4,here4/is/a/nested/example

:nested-tags: topic5, here5/is/a/nested/example, project.task.nested

https://docs.asciidoctor.org/asciidoc/latest/document/metadata/#keywords

The keywords attribute contains a list of comma separated values that are assigned to the HTML element.

https://docs.asciidoctor.org/asciidoc/latest/attributes/document-attributes/

Each document holds a set of name-value pairs called document attributes. These attributes provide a means of configuring the AsciiDoc processor, declaring document metadata, and defining reusable content. This page introduces document attributes and answers some questions about the terminology used when referring to them.

:tags: is an example for a document attribut.

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

1 participant