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

Classes on images not working

Started by Muut Archive 10 years ago · 2 replies · 370 views
10 years ago

Putting a class on an image using markdown syntax as outlined in the Grav docs does not seem to be working.

I'm using this syntax:

TXT
![Some ALT text](sample-image.jpg "My title") {.myclass}

I tried doing this in the system.yaml. Actually I turned them on in the admin dashboard but verified the config set is in the yaml file.

YAML
  process:
    markdown: true
    twig: true
  twig_first: true
10 years ago

Aha! Thank you! - Also, I'm wondering if this problem could be more simply solved with shortcodes? When I'm not exhausted I'll read about those plugins.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1366 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago