mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-11 05:44:45 +00:00
How to generate inline html ? #702
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BeepBeepBopBop on GitHub (Oct 3, 2024).
Hello, I am new to Markdig and I have the following use-case:
I am trying to write a UI similar to Chat GPT's when the assistant is responding, with a string of characters followed by a circle. Here is the simplified code:
-> The issue that I have is that Markdig generates block elements. Is there a way to configure the behavior so that the "X" in the code above appears on the same line as the html generated by Markdig ?
Thanks a lot for your help.
@AmadeusW commented on GitHub (Oct 3, 2024):
I don't think it's a bug on markdig. You can achieve what you want in CSS, using
display: flexrather thandisplay:inline, with withalign-items: flex-end. Here's details: https://css-tricks.com/snippets/css/a-guide-to-flexbox/@xoofx commented on GitHub (Oct 3, 2024):
Agreed, not really a bug or an issue with markdig, but HTML/CSS related.