Skip to content

Instantly share code, notes, and snippets.

@niklausgerber
Created March 19, 2012 14:51
Show Gist options
  • Save niklausgerber/2115050 to your computer and use it in GitHub Desktop.
Save niklausgerber/2115050 to your computer and use it in GitHub Desktop.
KirbyTXT SPAN, CLASSES and ID
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?
@bastianallgeier
Copy link

I have a great surprise for you!!! You can use raw html in kirbytext/markdown instead :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment