Search code examples
githubmarkdowngithub-flavored-markdownreadme

How to use smaller font size in a GitHub table?


How to use a smaller font size in a GitHub readme.md?

I am trying to figure out how to use smaller text in the GitHub readme.

More specifically, I created a table and I want the font size to be smaller for this table.

I saw somewhere people recommended to use which I tried and does not work.

Table:

| Embedding       | Script        |
|-----------------|---------------|
| word2Vec        | abc.sh        |
| code2Vec        | cde.sh        |

The intention is to make the font size for the complete table smaller.

Can anyone please advise me what's the workaround?


Solution

  • Github doesn't allow inline-styles or classes. A workaround is to wrap sub tag around each element.

    Embedding Script
    word2Vec abc.sh
    code2Vec cde.sh