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

Should revisit <! {! because of raw tags and custom attribute clash #900

Open
Ducasse opened this issue Oct 19, 2024 · 0 comments
Open

Should revisit <! {! because of raw tags and custom attribute clash #900

Ducasse opened this issue Oct 19, 2024 · 0 comments

Comments

@Ducasse
Copy link
Contributor

Ducasse commented Oct 19, 2024

Contexte

In Microdown
{! is for extension in paragraph and <! for new block extension.

Problem one custom attributes

Now { is used for custom attributes.

# CSS Classes{.WARNING}
Using `.css-class` syntax lets you apply custom CSS classes.

## Id Values{#Updates}
Using `#id` lets you apply custom ID values.

## Custom Styling{style="color:darkgoldenrod"}
For everything else you can use attributes

## Miscellaneous examples
[West Wind WebSurge](https://websurge.com){title="WebSurge Stress Tester"}

![](https://markdownmonster.west-wind.com/Images/MarkdownMonster_Icon_256.png){style="width:50px"}

Solutions for custom attributes

  • Sol1. Introduce a new token % for example? for custom attribute introduction - would prefer to be compatible
  • Sol2. Replace {! by something else for example !{ }!

Problem two: support for raw paragraph

raw paragraph starts with < and conflicts with <!

<iframe>
...
</iframe>

Solution for raw paragraph clash

  • change <!inputFile|path=file!> into another token.
  • Candidate could be [!inputFile|path=file!]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant