Skip to content

ironfroggy/obsidian-extra-styles-plugin

 
 

Repository files navigation

Obsidian Extra Styles Plugin

This plugin adds several new styling options and the ability to configure any number of custom style markup options for your Obsidian notes!

Out of the box, you'll get:

  • Underline
  • Superscript
  • Subscript
  • Hidden, which hides text behind censor bars

You can customize any of these styles, controlling the HTML tag and CSS properties associated with them.

All styles are marked up via inline code syntax. For example, you can underline like this:

This text has some _underlined_ text.

All custom styles have commands in the command palette to toggle them on selected text and can be bound to individual hotkeys.

Demo Video

extra_styles_demo.mp4

How to develop

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run dev to start compilation in watch mode.

Manually installing the plugin

  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/your-plugin-id/.

Attribution

Special thanks and attribution to the Dataview plugin (https://github.com/blacksmithgu/obsidian-dataview/), from which I based much of the inline rendering code on. As such this plugin maintains the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 84.0%
  • CSS 10.0%
  • JavaScript 6.0%