@model string
<style>
.markdown-guide{
display: flex;
backdrop-filter:blur(25px);
background-color: rgba(255, 255, 255, .5);
flex-wrap: nowrap;
align-items: flex-start;
justify-content: center;
margin: 2em;
}
.markdown-code{
width: 50%;
}
.markdown-preview{
margin-top: 7px;
border-left: solid 5px #66686b;
padding: 1em;
flex: 1;
width:1px;
}
@@media screen and (max-width: 640px) {
.markdown-guide{
display: block;
margin: 1em;
width: calc(100% - 2em);
}
.markdown-code{
display: none;
}
.markdown-preview{
border-left: none;
flex: none;
width: calc(100% - 2em);
}
}
@@media (prefers-color-scheme: dark){
.markdown-guide{
background-color: rgba(36,37,37,.5);
}
}
</style>
<div class="markdown-guide">
<div class="markdown-code">
<pre><code class="language-markdown">@Model</code></pre>
</div>
<div class="markdown-body markdown-preview">
@Html.Raw(Model.MarkdownToHtml(false))
</div>
</div>