Fix the default getSyntax
See original GitHub issueSince the latest version of this project has changed the default syntax from javascript to null, and it check the syntax by the block data, I just wonder how can I set the block data for it? I tried Modifier.setBlockData
after toggleStyle but it doesn’t work. Any one knows how to make it? Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Migration. Alter table, set default and get syntax error. postgresql
Hello. I have migration. Yii 2.0.6. Postgres 9.4 public function up() { $this->alterColumn('client', 'banned', ...
Read more >com.typesafe.config.ConfigParseOptions.getSyntax java code ...
Set a ConfigIncluder which customizes how includes are handled. getClassLoader. Get the class loader; never returns null, if the class loader was unset,...
Read more >ConfigParseOptions
A set of options related to parsing. ... Gets an instance of ConfigParseOptions with all fields set to the default values. ... public...
Read more >reactjs - TypeScript - export default as - Stack Overflow
I'm trying to understand the correct syntax for exporting a default component using as. Up till now I've used:
Read more >When I run the default `blogdown website` in RStudio, I can't ...
Hi all, After install and load all required packages to build website using blogdown in Rstudio, I go to File -> New Project...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@goddyZhao @Method-X I just had a look at the source code, I guess
lib/option.js
line 23return block.getData().syntax;
should bereturn block.getData().get('syntax');
, sinceblock.getData()
returns anImmutable.Map
object.This is a bug in our default
getSyntax
method, changing line 23 toblock.getData().get('syntax')
should work. PRs very welcome!