Support for FontAwesome Icons on MARP preview #83
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
VS Code preview looks like sanitizing Instead, you can import the external CSS by <style>
@import 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
</style> |
Beta Was this translation helpful? Give feedback.
-
For everyone else who might've tried this solution without success: make sure to close the preview pane and re-enable the "Toggle Marp Feature for current markdown" from the Marp icon in VScode. Also, make sure to enable Markdown › Marp: Enable HTML Took me days of troubleshooting 🤦🏽 @yhatt, is it possible to use the new FA fonts in Marp? I tried with this CDN, but I only got blank blocks in the renderer. https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css |
Beta Was this translation helpful? Give feedback.
-
[FYI]: I was released markdow-it plugin for marp @kazumatu981/markdown-it-fontawesome - npm To use this, you can write easier decks inclueing Fontawesome icons. |
Beta Was this translation helpful? Give feedback.
VS Code preview looks like sanitizing
<link>
tag due to some security reason.Instead, you can import the external CSS by
@import
rule within inline style (<style>
tag for tweaking theme CSS).