Code blocks in italics

7 views
Skip to first unread message

dig...@dropbox.com

unread,
May 20, 2015, 3:35:56 PM5/20/15
to read-t...@googlegroups.com
Hello everyone,

I have code blocks which are essentially JSON and they are rendered in italics in Read the Docs.  How do I fix this?

So something like this:

    {
        id: int,
    }

Will render as:


{
    id: int,
}

 

Ryan Gonzalez

unread,
May 20, 2015, 4:11:04 PM5/20/15
to dig...@dropbox.com, read-t...@googlegroups.com
How did you write out the code block?

--
You received this message because you are subscribed to the Google Groups "Read the Docs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to read-the-doc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong.

Digant Kasundra

unread,
May 20, 2015, 4:54:46 PM5/20/15
to Ryan Gonzalez, read-t...@googlegroups.com
By indenting in four spaces as demonstrated in the email. 
--
Digant C Kasundra
SRE::SysEng

Digant Kasundra

unread,
May 20, 2015, 5:29:17 PM5/20/15
to Ryan Gonzalez, read-t...@googlegroups.com
I've changed it to using ``` at the beginning and end and still see the same issue.  For some reason, the css class "cs" is getting applied to these json blocks and that is putting in italics.

Ryan Gonzalez

unread,
May 20, 2015, 5:35:45 PM5/20/15
to Digant Kasundra, read-t...@googlegroups.com
Does this make a difference:

.. code-block:: json
   
   {
       id: int,
   }

Digant Kasundra

unread,
May 20, 2015, 5:45:48 PM5/20/15
to Ryan Gonzalez, read-t...@googlegroups.com
Because this is the markdown, that statement doesn't help.  Now it is all just a jumble of text.

You received this message because you are subscribed to a topic in the Google Groups "Read the Docs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/read-the-docs/g9kXr1XAaoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to read-the-doc...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Ryan Gonzalez

unread,
May 20, 2015, 6:28:14 PM5/20/15
to Digant Kasundra, read-t...@googlegroups.com
You didn't mention it was markdown. ;)

Digant Kasundra

unread,
May 20, 2015, 10:10:10 PM5/20/15
to Ryan Gonzalez, read-t...@googlegroups.com
Doh!  You are correct.  I forgot to mention that.  So, if i'm using Markdown, am I just stuck with italics?

Ryan Gonzalez

unread,
May 20, 2015, 10:15:16 PM5/20/15
to Digant Kasundra, read-t...@googlegroups.com
I have *no* clue. I rarely use markdown.


You could always try specifying the language explicitly:

```json
{ "x": "whatever" }
```

RTD uses mkdocs for markdown, so you might want to ask somewhere related to there. Good luck!
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Reply all
Reply to author
Forward
0 new messages