# Dropcaps in Discourse - cannot override span tag

**URL:** <https://meta.discourse.org/t/dropcaps-in-discourse-cannot-override-span-tag/66477>\
**Category:** UX\
**Created:** [July 20, 2017, 12:29am UTC](https://meta.discourse.org/t/dropcaps-in-discourse-cannot-override-span-tag/66477 "2017-07-20T00:29:23Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [July 20, 2017, 12:45pm UTC](https://meta.discourse.org/t/dropcaps-in-discourse-cannot-override-span-tag/66477/9 "2017-07-20T12:45:45Z")

</div>

You are close, but that isn’t quite right.

First, the file path should be `assets/javascripts/lib/discourse-markdown/dropcaps.js.es6`

Next it needs to have the contents of

```plaintext
export function setup(helper) {
  helper.registerOptions((opts, siteSettings)=>{
    opts.features['dropcaps'] = true; //!!siteSettings.dropcaps_enabled;
  });

  helper.whiteList(['span.dropcaps', 'span.sclass']);
}

```

---

_[View the full topic](https://meta.discourse.org/t/dropcaps-in-discourse-cannot-override-span-tag/66477)._
