Skip to content

Commit

Permalink
chore(release): 2.1.0 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Mar 18, 2021
1 parent 8c0e209 commit 9e7873f
Show file tree
Hide file tree
Showing 14 changed files with 572 additions and 300 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# [2.1.0](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v2.0.0...v2.1.0) (2021-03-18)


### Bug Fixes

* refactor EventLoopYielder ([89a5933](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/89a5933447f9cb37de3a3c143d54f0c8eaf2e9df))
* scopesByFenceName type ([80749db](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/80749db7047401cbd60a25e9fae76038b2987f57))


### Features

* pass optional configuration to purifier ([f4e064a](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/f4e064abe236e36e0c1c0fa94d45466d6267b580))
* use more robust tree-sitter highlighter variation ([fc6b190](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/fc6b19022493414c72261cdcdde5326d5192e632))

# [2.0.0](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.6.0...v2.0.0) (2021-02-04)


Expand Down
30 changes: 30 additions & 0 deletions dist/highlighter.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
declare module "atom" {
interface GrammarRegistry {
grammarForId(id: string): Grammar;
languageModeForGrammarAndBuffer(g: Grammar, b: TextBuffer): LanguageMode;
}
interface LanguageMode {
readonly fullyTokenized?: boolean;
readonly tree?: boolean;
onDidTokenize(cb: () => void): Disposable;
buildHighlightIterator(): HighlightIterator;
classNameForScopeId(id: ScopeId): string;
startTokenizing?(): void;
}
interface HighlightIterator {
seek(pos: {
row: number;
column: number;
}): void;
getPosition(): {
row: number;
column: number;
};
getOpenScopeIds?(): ScopeId[];
getCloseScopeIds?(): ScopeId[];
moveToSuccessor(): void;
}
interface ScopeId {
}
}
export declare function highlightTreeSitter(sourceCode: string, scopeName: string): Promise<string>;
69 changes: 69 additions & 0 deletions dist/highlighter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 1 addition & 16 deletions dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.js.map

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions dist/renderer.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { TextEditor } from "atom";
export declare function editorTokenized(editor: TextEditor): Promise<unknown>;
export declare function highlight(code: string, scopeName: string): Promise<string[]>;
export declare function render(markdownText: string, grammar: string): Promise<string>;
import DOMPurify from "dompurify";
export declare type DOMPurifyConfig = Omit<DOMPurify.Config, "RETURN_DOM" | "RETURN_DOM_FRAGMENT" | "RETURN_TRUSTED_TYPE">;
export declare function render(markdownText: string, scopeName?: string, domPurifyConfig?: DOMPurifyConfig): Promise<string>;
17 changes: 1 addition & 16 deletions dist/renderer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/renderer.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 9e7873f

Please sign in to comment.