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 Markdown Extra syntax #1

Open
redactedscribe opened this issue Dec 31, 2024 · 2 comments
Open

Support Markdown Extra syntax #1

redactedscribe opened this issue Dec 31, 2024 · 2 comments
Labels
effort: 13 type: feature New functionality, features work: chaotic Novel practices used

Comments

@redactedscribe
Copy link

redactedscribe commented Dec 31, 2024

Hello and thank you for your useful plugin!

I was wondering if in the future this plugin could support the Markdown Extra syntax for creating abbreviations:

The HTML specification is maintained by the W3C.

*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium

Ideally the definitions would be hidden in Obsidian's reading view mode, and abbreviations should work regardless of whether the user has defined their abbreviation via the front matter or the note's body using Markdown Extra syntax, or both.

Thanks.

@redactedscribe
Copy link
Author

redactedscribe commented Jan 13, 2025

Thank you so much for the recent feature additions! This one, although experimental, is functional.

One issue is that the leading asterisk on each definition's line is interpreted as the opening syntax for italicising text but only when definitions aren't surrounded by a blank line. This leads to italicising of every other definition, but more importantly, the definitions also show in Reading view (which isn't the case when they are surrounded by blank lines).

I would like all of these forms to be treated the same (hidden in Reading view, and ideally, not italicised in live preview / source view):

*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
*[HTML]: Hyper Text Markup Language\
*[W3C]: World Wide Web Consortium
*[HTML]: Hyper Text Markup Language<br>
*[W3C]: World Wide Web Consortium
*[HTML]: Hyper Text Markup Language<br/>
*[W3C]: World Wide Web Consortium

Not shown in Reading view due to the surrounding blank lines, but still italicised in live preview / source view:

*[HTML]: Hyper Text Markup Language

Some text.

*[W3C]: World Wide Web Consortium

Thank you.

@dragonish
Copy link
Owner

In continuous lines, declarations of abbreviations will indeed be displayed in the reading view; I'll fix this later.


Regarding the case of defining rendering as italic in live preview and source mode, this is an internal decorator within the editor. I tried to handle it, but the final effect was not ideal. I'm sorry, but I haven't been able to find a good solution for it at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: 13 type: feature New functionality, features work: chaotic Novel practices used
Projects
None yet
Development

No branches or pull requests

2 participants