Reocin / obsidian-markdown-formatting-assistant-plugin

This Plugin provides a simple WYSIWYG Editor for Markdown and in addition a command line interface. The command line interface facilitate a faster workflow.
251 stars 28 forks source link

Suggestion: Add sup tag #78

Open xkuubix opened 9 months ago

xkuubix commented 9 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Jayb1u3 commented 5 months ago

If you go into the main.js file, under var htmlFormatterSettings = { you can add

  sup: {
    des: "<sup>",
    symbol: "<sup></sup>",
    shift: 5,
    selectionInput: 5,
    objectType: "htmlFormatterSetting",
  },
  sub: {
    des: "<sub>",
    symbol: "<sub></sub>",
    shift: 5,
    selectionInput: 5,
    objectType: "htmlFormatterSetting",

and that should work.