Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can arbitrary code length be allowed? #121

Closed
rikhuijzer opened this issue Jun 20, 2021 · 1 comment
Closed

Can arbitrary code length be allowed? #121

rikhuijzer opened this issue Jun 20, 2021 · 1 comment

Comments

@rikhuijzer
Copy link
Collaborator

Currently not, because the code needs to be converted to a filename. However, the solution could be that the user specifies a name:

```jl block_name
[...]
```

or that Lua and Julia generate the same hash for a codeblock.

@rikhuijzer
Copy link
Collaborator Author

rikhuijzer commented Jun 20, 2021

Let's call it a feature; not a bug. The benefit, currently, is that users are encouraged to keep the logic inside the module. The drawback of writing code in the Markdown file is that it is parsed much later than code in source files and the code is more difficult to test. Users who want to write code in the Markdown can use Bookdown, Franklin or Weave.

It would also make the guessing of file and caption names much more difficult for Books.jl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant