markdown indentation (github)

2.4k Views Asked by At

When I write the code below, I can see the indentation in HackMD. But I can't see the same effect in GitHub. What can I do to solve it?

<style>
  p {
    font-size: 16px;
    text-indent: 2em;
  }
</style>

1

There are 1 best solutions below

0
On BEST ANSWER

GitHub doesn't allow arbitrary styles in its Markdown:

The HTML is sanitized, aggressively removing things that could harm you and your kin—such as script tags, inline-styles, and class or id attributes. See the sanitization filter for the full whitelist.

You're probably going to have to live with its default rendering.