GithubHelp home page GithubHelp logo

obsidian-extended-syntax's Introduction

Obsidian Extended Syntax

This is a plugin adding support for non-standard Markdown syntax for less needed and/or more rare inline features for Obsidian.

The repo depends on the latest plugin API (obsidian.d.ts) in Typescript Definition format, which contains TSDoc comments describing what it does.

At the moment, the plugin by default adds the following elements:

  • insertion: ++added text++ as <ins style="color:green">added text</ins>
  • subscript: H~2~O as H<sub>2</sub>O
  • superscript: a^2^ as a<sup>2</sup>
  • underline: ..Underline.. as <span style="text-decoration: underline">Underline</span>
  • small caps: ^^Small Caps^^ as <span style="font-variant:small-caps">Small Caps</span>
  • Centered text: ->center<- as <center>center</center>
  • “Discord-style” spoiler tag: ||spoiler|| rendered as a “censored” text

Note
Compatibility with other Markdown flavours: All currently implemented tokens with the sole exception of Discord-style spoiler, can be safely replaced with a corresponding HTML notation and inline styles.

Warning
At the time of developing this project, the Obsidian API is still in early alpha and is subject to change at any time!

Development

  • Clone this repo to a local development folder. For convenience, you can place this folder in your .obsidian/plugins/obsidian-extended-syntax folder.
  • Install NodeJS, then run npm i in the command line under your repo folder.
  • Run npm run dev to compile your plugin from main.ts to main.js.
  • Make changes to src/main.ts (or create new .ts files). Those changes should be automatically compiled into main.js.
  • Reload Obsidian to load the new version of your plugin.
  • Enable plugin in settings window.
  • For updates to the Obsidian API run npm update in the command line under your repo folder.

Manual installation

  • Create an empty folder (named for example obsidian-extended-syntax) in your VaultFolder/.obsidian/plugins/ folder.
  • Copy over the compiled main.js, styles.css, manifest.json to the created folder.

Recommoneded plugins

obsidian-extended-syntax's People

Contributors

mkotowski avatar

Stargazers

 avatar  avatar

Watchers

 avatar

obsidian-extended-syntax's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.