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

[FEATURE] Add Exponents/The ability to write in superscript and subscript #3098

Open
Jobe-Thompson opened this issue Sep 4, 2024 · 2 comments

Comments

@Jobe-Thompson
Copy link

Is your feature request related to a problem? Please describe.

I love QOwnNotes and and use it for all my personal note taking. I'd like to try using it to write my essays, however when I write, I need to add source numbers after pieces of information. Usually I would put the source number of the information surrounded by square brackets in superscript.

Describe the solution you'd like

Simple syntax to write superscript and subscript, for example typing the caret symbol before and after text for superscript (example: ^superscript text here^).

Describe alternatives you've considered

I have tried linking that specific piece of information to a heading in a different note, however the syntax for this visually distracts from the rest of the essay while writing and is also cumbersome to add while writing.

@pbek
Copy link
Owner

pbek commented Sep 4, 2024

There is nothing in (proper) Markdown to support that, so the md4c library, used for the preview, isn't support that.
But the QTextBrowser widget of the preview is supporting the <sup> HTML tag, so you could either just use this or write a script in QOwnNotes that converts some special syntax of your choosing to a <sup> tag in the preview with https://www.qownnotes.org/scripting/hooks.html#notetomarkdownhtmlhook.

image

@Jobe-Thompson
Copy link
Author

Jobe-Thompson commented Sep 5, 2024

Alright I will give that a try, thank you for the help

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

No branches or pull requests

2 participants