Skip to content

Commit

Permalink
Merge pull request #722 from thenesterov/patch-5
Browse files Browse the repository at this point in the history
$mol_textarea: add ability to override syntax
  • Loading branch information
nin-jin authored Dec 6, 2024
2 parents 1e3065e + 3dd2d08 commit 2aab041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions textarea/textarea.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $mol_textarea $mol_stack
row_numb* <= row_numb* 0
sidebar_showed <= sidebar_showed
highlight <= highlight \
syntax <= syntax $mol_syntax2
symbols_alt *string
comma \<
period \>
Expand Down
3 changes: 3 additions & 0 deletions textarea/textarea.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ namespace $.$$ {
return index
}

syntax() {
return this.$.$mol_syntax2_md_code
}
}

}

0 comments on commit 2aab041

Please sign in to comment.