enkisoftware / imgui_markdown

Markdown for Dear ImGui
zlib License
1.03k stars 69 forks source link

Icon #22

Closed ZoozleDev closed 2 years ago

ZoozleDev commented 2 years ago

Here You show "This is an icon"

I would like to see the code for that since I would like to use ICON_FA_STAR in the markdown but cannot get it to work

Thank you in advance

dougbinks commented 2 years ago

See the following project: https://github.com/juliettef/IconFontCppHeaders#example-code

[EDIT] However to get the icon in Markdown you need to copy the actual unicode icon from a cheatsheet into your UTF8 code, for example:

const char markdownText = u8R"(   an icon )";
ZoozleDev commented 2 years ago

Oh ok that did it. Thank you so much