Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,545
Community Members
 
Community Events
176
Community Groups

Markdown code block - supported languages?

Edited

I am having some problems with a .md file not displaying code blocks properly inside my bitbucket repository. Is there a list of supported markdown code block languages available.

 

Languages I've tried / would like to be shown properly:

 

c# razor view syntax

```csharp .cshtml

React jsx syntax

```jsx

3 answers

Can we please have markdown support? Pretty please? 

The markdown tutorial says "the 'short name' or the 'mimetype' of anything in" the list of Pygments lexers will work.

 

I think the syntax highlighting for file extensions is a different list from a different library.

0 votes
Ana Retamal Atlassian Team Jan 10, 2018

Hi Alan! According to our documentation, all the common coding languages are supported, including C# and JSX (for reference http://codemirror.net/mode/).

For more info you can also read Configuring syntax highlighting for file extensions.

I found this and this  in our issue tracker where code that was enclosed in a code block area was treated differently, but seems like it was fixed some time ago.

Regards,

Ana

I still can't believe a company like Altassian have so poor support to these kinds of features. Yes, you actually support `jsx`, but it renders exactly like `javascript`, and... surprise! It sucks!

```jsx
import { GlobalStyles, ThemeProvider, theme } from "my-library"

const Root = () => (
<GlobalStyles>
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
<GlobalStyles>
)

```

Screenshot 2020-03-04 at 10.15.10.png

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events