-
Notifications
You must be signed in to change notification settings - Fork 12
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
Custom formatting commands #5
Comments
I added this feature in my own fork of scidown, but I'm not sure how useful this is, because for the user it takes about the same amount of work as typing: <style>
.red_italic_text {
color: red;
font-style: italic;
}
</style>
<div class="red_italic_text">
This is the red italic text
</div> If you think there is still value in adding this as custom syntax, lef me know and I can submit a PR |
I'm not sure as it would be very complex to render similar output to latex and I think it would be better or creating some sort of |
Maybe we can combine the two. We can implement individual commands like We can then also add the This would allow for both quick inline usage like this:
As well as easy reuse of commands:
Ideally, we would be able to nest user-defined styles as well:
|
Yes I think it could be a good Idea, so can you do a PR? |
One of the most powerful features of LaTeX in my opinion is the ability to create custom commands and environments.
Although the way Scidown works is fundamentally different, we might be able to reproduce this with CSS.
It would be cool if we could do something like this:
In practice, the css code in the
new_style
block would be added to the document for the html class.red_italic_text
. Then all of the html tags inside of the@red_italic_text @/
block would haveclass=".red_italic_text"
.The text was updated successfully, but these errors were encountered: