Created
March 19, 2012 14:51
-
-
Save niklausgerber/2115050 to your computer and use it in GitHub Desktop.
KirbyTXT SPAN, CLASSES and ID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In KirbyText I can do this: | |
##Text | |
and it will give me | |
<h2>Text</h2> | |
I can also do this (link: http://getkirby.com text: getkirby popup: yes) which will give me a link. Brilliant would be if I could generate span classes or even direct classes or IDs out of this. As an Idea: | |
(type: span class: myclass text: Lorem Ipsum) | |
would get me | |
<span class="myclass">Lorem Ipsum</span> | |
or | |
(type: span id: myclass text: Lorem Ipsum) | |
would get me | |
<span id="myclass">Lorem Ipsum</span> | |
If you think about it you then could also do something like: | |
(type: div id: myclass text: Lorem Ipsum) = <div id="myclass">Lorem Ipsum</div> | |
or | |
(type: h3 id: myclass text: Lorem Ipsum) = <h3 id="myclass">Lorem Ipsum</h3> | |
Like this you could a lot more of custom styling without fiddling with the templates. | |
What you think about it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a great surprise for you!!! You can use raw html in kirbytext/markdown instead :P