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

Extended support for AsciiDoc #259

Open
michix opened this issue Jul 7, 2023 · 3 comments
Open

Extended support for AsciiDoc #259

michix opened this issue Jul 7, 2023 · 3 comments

Comments

@michix
Copy link

michix commented Jul 7, 2023

As of issue #132 there is support for AsciiDoc. Is it possible to improve this support a bit regarding the following points?

. When creating a new note, the default file extension is .md. Is it possible to use .adoc here?
. When creating a new note with nb add --title filename.adoc a template for a Markdown-Document is used, i.e. the heading is done with # instead of =.

Probably I missed something in the great documentation. If so, I'm very sorry!

xwmx added a commit that referenced this issue Jul 17, 2023
@xwmx
Copy link
Owner

xwmx commented Jul 17, 2023

@michix Yes, you can set the default extension to .adoc with the following command:

nb set default_extension "adoc"

New notes will then be created with the .adoc extension. AsciiDoc titles are also recognized in ls / list.

The missing add --title formatting for AsciiDoc was an oversight. It's now included in the latest versions in the repository and will be in the next release version.

Let me know if there are any other issues you are aware of with this.

@michix
Copy link
Author

michix commented Jul 18, 2023

Many thanks! There is one more thing: in markdown the title is formatted using # Title while it is in asciidoc = Title.

Right now, this is not considered.

@xwmx
Copy link
Owner

xwmx commented Jul 18, 2023

As of the latest version 7.5.4, = AsciiDoc Titles should be fully supported, including with nb add when .adoc or .asciidoc is specified as the extension in nb add --filename or nb set default_extension. Let me know if there is anywhere I missed.

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