-
Notifications
You must be signed in to change notification settings - Fork 124
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 an easy syntax for bigger/smaller text size #28
Comments
Hmm, I don't see this being abused in CS2103/T Website — didn't know there were so many quotes! Not sure about the use case here. Can we stick to headings for this? |
IIRC, the text size was adjusted later to be of normal size, and the abuse stopped :-)
I thought showing some text larger than normal can be used to indicate more important part of the text e.g., a paragraph that gives a high-level overview of the rest. I've seen some Web articles using that technique. The objective is if the reader is in a hurry, she can only read those bigger text parts.
Yup, we can use that for the time being. It's more convenient if we have a shorter syntax though. |
How about |
Sure. is something like this possible? |
Nice. In that case, should they be bigger and smaller, which gives the sense of cumulative effect? |
|
OK, we'll go with that then. |
I'm OK with |
Removing |
Since CSS's |
We can add easily support for large {
font-weight: 400;
font-size: 125%;
} To simplify the syntax, we can either use markdown-It-regex which is already imported, or markdown-it-container. Suggestion:
New syntax:
++Larger text++
--smaller text--
__underline text__
**_bold and italic_**, _**bold and italic**_, ***bold and italics*** |
Note that adopting the suggested syntax will disobey the rules defined within commonMark spec. So far I could only find Discord to break semantics to support underline text. We might want to break semantics to support underline as it is a common document style. Discussions on underline text can be found here: |
Unfortunately, I guess we want to preserve compatibility with Markdown syntax. |
How about switching over to After that, we can adopt the syntax for large / small text suggested above #28 (comment)
|
Yes, that is possible. Will there be any issue because Perhaps we can also support |
unlikely, similar to how you can use
yes that's possible as well. Let's go with that then; Also this can be implemented as an independent npm package outside of markbind, there seems to be quite a bit of demand for such a plugin |
Can $$ be in conflict with LATEX notation for math? |
thanks for highlighting this @fsancho I believe it may conflict with external scripts, but we're providing our own using bracket notations |
Thanks for replying so fast! |
Fair point, hmm... I suggested The alternatives I could think of were One potential fix is to expose these delimiters to user configuration for such use cases. any thoughts as well? @damithc |
I'm OK with that notation too. |
@ang-zeyu How should we approach this? Should we make the PR for the |
ok, let's go with Thanks for taking a look at this again @wxwxwxwx9 Since
|
Thanks a lot for taking into consideration my comment/needs! I really apreciate your wonderful work with MarkBind! |
No problem. Thanks for the input as well! 😃 |
Currently we use block quote formatting to show text in bigger size. This is an abuse of syntax. Instead, we should tweak the block quote formatting to actually look like quotes as we do have an actual use case for showing quotes in our eContent.
On the other hand, we could support an easy syntax to indicate whether to make text bigger/smaller relative to the default size. e.g.
+++
---
The text was updated successfully, but these errors were encountered: