# Cross-reference onebox is bungling code formatting

**URL:** https://meta.discourse.org/t/cross-reference-onebox-is-bungling-code-formatting/34529
**Category:** Feature
**Tags:** onebox
**Created:** [October 14, 2015, 11:46pm UTC](https://meta.discourse.org/t/cross-reference-onebox-is-bungling-code-formatting/34529 "2015-10-14T23:46:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![malmaud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/malmaud/32/116711_2.png) [@malmaud](https://meta.discourse.org/u/malmaud)
#### Post date: [October 14, 2015, 11:46pm UTC](https://meta.discourse.org/t/cross-reference-onebox-is-bungling-code-formatting/34529/1 "2015-10-14T23:46:37Z")

</div>

For example, following the link below gives a page with perfect code formatting, but the preview doesn’t inherit that formatting.

[http://julia.malmaud.com/t/testing-julia-syntax-highlighting/3204](http://julia.malmaud.com/t/testing-julia-syntax-highlighting/3204)

---

<div class="post-metadata">

### Author: ![hayd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hayd/32/107109_2.png) [@hayd](https://meta.discourse.org/u/hayd)
#### Post date: [October 19, 2015, 3:29pm UTC](https://meta.discourse.org/t/cross-reference-onebox-is-bungling-code-formatting/34529/2 "2015-10-19T15:29:23Z")

</div>

Is the content og:description, and so plain text rather than markdown?

This is related to the [read the docs issue](https://github.com/rtfd/readthedocs.org/issues/1758) - can you pass html to one box via og:XXX?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 7, 2016, 11:23pm UTC](https://meta.discourse.org/t/cross-reference-onebox-is-bungling-code-formatting/34529/3 "2016-03-07T23:23:50Z")

</div>

Pulling across formatting is a major scope increase for onebox…

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 4, 2025, 11:37am UTC](https://meta.discourse.org/t/cross-reference-onebox-is-bungling-code-formatting/34529/4 "2025-12-04T11:37:03Z")

</div>


