Skip to content

Generate CPP source file from code blocks in markdown #12273

Answered by cderv
bryevdv asked this question in Q&A
Discussion options

You must be logged in to vote

Let me clarify some context about syntax here before trying to answer your initial question.

I suppose things sort of work if I rename foo.md -> foo.qmd

.md doc can work with quarto, but this means they are not expecting to contains computation. No execution engine will be used (or more precisely, the markdown engine will be used which leads to no execution of computation of cell.

.qmd needs to be used to work with computations.

and also replace cpp -> {cpp}

The former is the Source code block syntax, and the latter is the execution code block syntax. Those are totally different usage. You shouldn't need to use computation if you only want to demo code and not execute the cell.

I just…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@bryevdv
Comment options

@bryevdv
Comment options

@cderv
Comment options

Answer selected by bryevdv
@bryevdv
Comment options

@cderv
Comment options

@bryevdv
Comment options

Comment options

You must be logged in to vote
2 replies
@bryevdv
Comment options

@cderv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
computations lua Issues related to the lua codebase, filter chain, etc
3 participants