Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PleahMaCaka/c825e330d3e8d3a6f3f83aaea538379b to your computer and use it in GitHub Desktop.
Save PleahMaCaka/c825e330d3e8d3a6f3f83aaea538379b to your computer and use it in GitHub Desktop.
/* EDIT MODE */
.canvas-node .HyperMD-header.HyperMD-header-1 {
text-align: center;
}
/* PREVIEW MODE */
.canvas-node .markdown-preview-view h1 {
text-align: center;
}
/* etc */
.canvas-node .HyperMD-header.HyperMD-header-2 {
text-align: center;
}
.canvas-node .markdown-preview-view h2 {
text-align: center;
}
.canvas-node .HyperMD-header.HyperMD-header-3 {
text-align: center;
}
.canvas-node .markdown-preview-view h3 {
text-align: center;
}
.canvas-node .HyperMD-header.HyperMD-header-4 {
text-align: center;
}
.canvas-node .markdown-preview-view h4 {
text-align: center;
}
.canvas-node .HyperMD-header.HyperMD-header-5 {
text-align: center;
}
.canvas-node .markdown-preview-view h5 {
text-align: center;
}
@ParthoM7
Copy link

ParthoM7 commented Aug 4, 2025

@PleahMaCaka Thank you so much for the css. I’m using Live Preview and centering is not effective in the preview while editing. Is it possible to modify this to implement that? Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment