Skip to content

Commit

Permalink
pdate README
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurankv committed Nov 28, 2023
1 parent 7342cc6 commit 5769029
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ See this project's [releases](/../../../releases).

## [Unreleased]

### Added

- Added markdown links and wikilinks in comments

### Changed

- Made `MarkdownRenderer.render` to use `plugin` as component
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ The different component colours that can be set within a theme are:

![Solarized Default Dark Colours](images/SolarizedDefaultDarkColours.png)

### Codeblock Comment Links

You can type markdown links (both internal and external) as well as wikilinks in comments inside codeblocks and they will be rendered as links. This can help reference other files. Embeds are not supported.

## Codeblock Parameters

Codeblock parameters are added to the first line of the codeblock following the language. They can be added in any order. If no language is set, a space should be left after the codeblock delimiter ` ``` ` to indicate that the first parameter is NOT the language of the codeblock. Also note that all parameters can be set with either `:` or `=`.
Expand Down
6 changes: 0 additions & 6 deletions src/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2129,12 +2129,6 @@ export const LANGUAGES: {[key: string]: Language} = {
}
};

const LANGUAGE_COMMENT_REGEXES: Record<string,RegExp> = {
"#": /(?<!\\)#(.*?)(?=\n|$)/,
"//": /(?<!\\)#(.*?)(?=\n|$)/,
"--": /--(.*?)(?=\n|$)/,
};

const EXECUTE_CODE_LANGUAGE_ALIASES: Array<string> = ["javascript","typescript","bash","csharp","wolfram","nb","wl","hs","py","scpt"];
const EXECUTE_CODE_CANONICAL_LANGUAGES: Array<string> = ["js","ts","cs","lean","lua","python","cpp","prolog","shell","groovy","r","go","rust","java","powershell","kotlin","mathematica","haskell","scala","racket","fsharp","c","dart","ruby","batch","sql","octave","maxima","applescript"];

Expand Down

0 comments on commit 5769029

Please sign in to comment.