For code in lists to be interpreted as code, it needs to be indented 4 spaces further to the list indentation.
Here's an example
Second item
code->this.does(work.just_fine)
This is also noted in the editing helpediting help for advanced lists (pretty much the very last line of that).