Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Adding a Theme to ul Output

Started by Muut Archive 10 years ago · 3 replies · 444 views
10 years ago

I'm using Google's MDL framework in my website's theme. There ul and li objects require css classes to be applied to display properly. At this point I haven't found a way to override the markdown rendering adequately. I know bootstrap has the same issue, so what is the best way to get around this?

10 years ago

There's a Classifier plugin, but I don't know if that will actually help you in this situation. I don't know the framework. You could also insert plain HTML in your pages and bypass Markdown altogether.

10 years ago

I will look into the Classifier Plugin a little more, but it doesn't look quite like what I need. Using MDL Lite, the ul needs to render like this:

HTML
<ul class="mdl-list">
  <li class="mdl-list__item">One</li>
  <li class="mdl-list__item">Two</li>
  <li class="mdl-list__item">Three</li>
</ul>

I mean, I could put it into the page like this, but that kind of defeats the point of using Markdown.

10 years ago

Well if your page only contains lists that you want formatted this way, and the class names are constant, then the Classifier plugin could work fine. Just use the \* selector.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1349 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2946 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago