-
-
Notifications
You must be signed in to change notification settings - Fork 3
Modify syntax for inline spans of text #20
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
Comments
This is a good idea; I've been looking for this inline functionality also. Unfortunately, this repo is no longer maintained, so we will have to wait for someone to PR this. |
@LilaRest I'm okay with being added as a maintainer. I'm not super active but I could get around to implementing a couple things, this feature included |
Hi, guys!
I've never been a maintainer before, and generally I'm quite busy lately.
But, it's a useful experience, and it can eventually be useful for what I
try to do.
So, I would like to try to become a maintainer for this project.
Best regards,
Voltel
…On Sun, 18 Aug 2024 at 22:48, Adam K ***@***.***> wrote:
@LilaRest <https://github.com/LilaRest> I'm okay with being added as a
maintainer. I'm not *super* active but I could get around to implementing
a couple things, this feature included
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIPRPBKB3TDY4Z5UTLBKUDZSEJEHAVCNFSM6AAAAABLFJFNV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGQYDMOJWHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Just wanted to put in another vote for this. It would be very useful in my case, as I have special processing that happens in regular codeblocks, that I would like to also do to inline blocks, but it requires a class... |
Is your feature request related to a problem? Please describe.
Currently, the syntax is limited in a way that css class can only be assigned to a chunk of text already delimited, e.g., by <strong>, <em> tags. As in the example below, it's currently impossible to apply a css class to a deliberate <span> of text—it has to be delimited by other markup.
Describe the solution you'd like
Use the pipe character ("|") as a delimiter to separate metadata (including css classes information) from the text in the code blocks.
E.g.
For inline chunk of text:
The following code
or its shorthand
should be rendered as
For blocks of text:
Use a yaml metadata to describe the rendering instructions for the block.
The following markup
should be rendered as
or
should be rendered as
Additional context
Currently, the
text
is rendered using the <code> html tag.A suggestion is to introduce inline yaml-like or css-like metadata in the code-block separated from the text with a pipe? E.g.:
rendered like the following:
The text was updated successfully, but these errors were encountered: