File tree Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 11{
22 "id" : " obsidian-admonition" ,
33 "name" : " Admonition" ,
4- "version" : " 6.0.1 " ,
4+ "version" : " 6.0.2 " ,
55 "minAppVersion" : " 0.11.0" ,
66 "description" : " Admonition block-styled content for Obsidian.md" ,
77 "author" : " Jeremy Valentine" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " obsidian-admonition" ,
3- "version" : " 6.0.1 " ,
3+ "version" : " 6.0.2 " ,
44 "description" : " Admonition block-styled content for Obsidian.md" ,
55 "main" : " main.js" ,
66 "scripts" : {
1818 "@rollup/plugin-commonjs" : " ^15.1.0" ,
1919 "@rollup/plugin-node-resolve" : " ^9.0.0" ,
2020 "@rollup/plugin-typescript" : " ^6.0.0" ,
21- "@types/html" : " ^1.0.0" ,
2221 "@types/node" : " ^14.14.2" ,
2322 "@types/object.fromentries" : " ^2.0.0" ,
24- "html" : " ^1.0.0" ,
25- "nanoid" : " ^3.1.23" ,
2623 "object.fromentries" : " ^2.0.4" ,
2724 "obsidian" : " https://github.com/obsidianmd/obsidian-api/tarball/master" ,
2825 "rollup" : " ^2.32.1" ,
Original file line number Diff line number Diff line change @@ -4,13 +4,11 @@ import {
44 MarkdownRenderChild ,
55 MarkdownRenderer ,
66 MarkdownView ,
7- Modal ,
87 Notice ,
98 Plugin ,
10- Setting ,
119 TFile
1210} from "obsidian" ;
13- import { prettyPrint as html } from "html" ;
11+ /* import { prettyPrint as html } from "html"; */
1412
1513import { Admonition , ObsidianAdmonitionPlugin , ISettingsData } from "./@types" ;
1614import {
@@ -258,7 +256,7 @@ export default class ObsidianAdmonition
258256 }
259257 }
260258 } ) ;
261- this . addCommand ( {
259+ /* this.addCommand({
262260 id: "replace-with-html",
263261 name: "Replace Admonitions with HTML",
264262 callback: async () => {
@@ -326,7 +324,7 @@ export default class ObsidianAdmonition
326324 );
327325 ensure.open();
328326 }
329- } ) ;
327+ }); */
330328
331329 this . addCommand ( {
332330 id : "insert-admonition" ,
Original file line number Diff line number Diff line change 11import { MarkdownRenderer , Notice } from "obsidian" ;
22
3- import { nanoid } from "nanoid" ;
3+ /* import { nanoid } from "nanoid"; */
44
55import { getIconNode } from "./icons" ;
66import { AdmonitionIconDefinition , INestedAdmonition } from "../@types" ;
77
88export function getID ( ) {
9- return `ID_${ nanoid ( ) } ` ;
9+ return "ID_xyxyxyxyxyxy" . replace ( / [ x y ] / g, function ( c ) {
10+ var r = ( Math . random ( ) * 16 ) | 0 ,
11+ v = c == "x" ? r : ( r & 0x3 ) | 0x8 ;
12+ return v . toString ( 16 ) ;
13+ } ) ;
1014}
1115
1216export function getMatches (
Original file line number Diff line number Diff line change 1111 "4.3.1" : " 0.12.0" ,
1212 "4.4.2" : " 0.12.2" ,
1313 "5.0.3" : " 0.12.2" ,
14- "6.0.1 " : " 0.12.4"
14+ "6.0.2 " : " 0.12.4"
1515}
You can’t perform that action at this time.
0 commit comments