-
-
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
spec: Attributes on headings and other elements #9
Comments
It seems bracketed_spans conflicts with Ruby annotation (#10). Is it better to change syntax for Ruby? |
Yes we need to change the ruby notation to fix the conflict. The most likely notation is |
Curly brackets are used in special attributes notation. So we need to make examples for it to avoid the conflicts with denden-markdown styled ruby notation. How this text are parsed? An image and ruby-text? Or An image having special attributes? (Sorry for malicious example!)
|
@tk0miya That's interesting. Can you provide some possible outcomes? so we can discuss more concisely. I think a properly implemented parser will fail to consume this as an image with attributed value because it has invalid character "|" for CSS class name. |
After reading this spec, I realized that "|" can be used for a part of CSS class name by adding "\" before "|" hence "\|" (seriously?) |
Actually, almost of users would not use to pipes to class name. So it is enough to define range of characters to special attribute block.
|
現状の vfm での実装状況と課題見出しその他の要素に属性を指定する記法は、現状の vfm (1.0.0-alpha.15) で一部は利用可能になってますが、Pandoc's Markdownで使える次のものがまだ使えません:
また次のものは、現状の vfm で利用可能ですが、課題があります。
課題:
課題: spec:
|
について v1.0 対応とするか v2.0 へ見送るかの意見をお願いします。 |
v1.0は現状でリリースして、v2.0の検討・開発に進むのでよいだろうと思います。 |
コメントありがとうございます。v2.0 へ送ります。 |
Goals
For effective CSS styling, we need to add attributes on headings and other elements.
Prior Art
PHP Markdown Extra defines Special Attributes:
Pandoc’s Markdown defines extensions for attributes, compatible with PHP Markdown Extra's Special Attributes and further extended:
[This is *some text*]{.class key="val"}
Discussion
Related issues:
<section>
with attributesThe text was updated successfully, but these errors were encountered: