Closed oldaccofpronoy2108 closed 3 years ago
It is already possible. You can put, for example:
# This is my markdown file
<style>
img {
padding: 24px;
border: 1px solid gray;
}
</style>
## Subtitle
Some description, etc...
![image](...)
That was CSS, but what about HTML?
@pronoymukherjeewritescode don’t you see style
tag? The same way you can use whatever else tags: div, img, video, iframe, etc
It isn't working... Markdown viewer keeps showing HTML & CSS elements as text...which is bad...
@pronoymukherjeewritescode paste entire text/code of the file into here pls
@pronoymukherjeewritescode paste entire text/code of the file into here pls
I copied the code you gave here:
# This is my markdown file
<style>
img {
padding: 24px;
border: 1px solid gray;
}
</style>
## Subtitle
Some description, etc...
![image](...)
@pronoymukherjeewritescode this is weird. Because what I see is:
Did you use the same code for this?
@pronoymukherjeewritescode you have to disable the sanitize
option.
Code I used:
| Before | After |
| ----------- | ----------- |
| ```
<table>
<thead>
<tr>
<th>Before</th>
<th>After</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
``` | <table> <thead> <tr> <th>Before</th> <th>After</th> </tr> </thead> <tbody> <tr> <td></td> <td></td> </tr> </tbody> </table> |
Output:
Thanks @simov, it worked, now I can use HTML & CSS!!!!
Please add HTML & CSS support as it would allow users to integrate CSS & HTML into their Markdown files....