Open YoshiRi opened 5 years ago
If you use a css file when saving you can simple add
body{ column-count: 2; }
Although I occured same issue, I found the essential problem is corruption of html block written in the markdown file in converting #119. I resolved using block of markdown-it-container.
<style>
.column-left{
float: left;
width: 50%;
text-align: left;
}
.column-right{
float: right;
width: 50%;
text-align: left;
}
</style>
::: column-left
# text A
:::
::: column-right
# text B
:::
If you use a css file when saving you can simple add
body{ column-count: 2; }
Thanks @hackslashdave. This solution works, but content is evenly distributed. Can it be modified so that leftmost columns are filled first?
@media print {
#write {
column-count: 2;
column-gap: 0.2cm; /* Adjust the gap between columns as needed */
padding: 0 0.2cm !important; /* Update padding if necessary */
margin: 0 !important;
}
}
Add this to the css file; it works for me.
Thank you for your great package.
I want to print two-columns document to PDF.
Though it can be properly shown in Markdown preview and html conversion, pdf conversion seems to be not supporting two column printing. Do you have any plan to support this in the future?