Nigecat / obsidian-desmos

Embed graphs directly into your obsidian notes
GNU General Public License v3.0
125 stars 7 forks source link

Apply 'desmos-graph' css class to graph element #57

Closed Nigecat closed 2 years ago

Nigecat commented 2 years ago

This allows for easier custom styling of the render output using Obsidian's CSS snippets.

For instance, if the user wished to center all graphs in the page content, they could add the following to a snippet:

/* Horizontally center the graph in the page content */
.desmos-graph {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

This is a re-merge of #55 after #56 since the commit message was incorrect and misleading.