[GH-ISSUE #87] Code rendered incorrectly #1256

Closed
opened 2026-04-11 07:40:32 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @V0XNIHILI on GitHub (Dec 4, 2023).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/87

For example on this page: https://harvard-edge.github.io/cs249r_book/frameworks.html

The code has still some formatting inside the code block:
image

Originally created by @V0XNIHILI on GitHub (Dec 4, 2023). Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/87 For example on this page: https://harvard-edge.github.io/cs249r_book/frameworks.html The code has still some formatting inside the code block: ![image](https://github.com/harvard-edge/cs249r_book/assets/24796206/ae988b1c-4f22-43a5-b639-086de63ebc2e)
GiteaMirror added the area: book label 2026-04-11 07:40:32 -05:00
Author
Owner

@profvjreddi commented on GitHub (Dec 5, 2023):

Do you think you could help us with this?

You'd have to follow the instructions here to issue any fixes:
https://github.com/harvard-edge/cs249r_book

On Mon, Dec 4, 2023 at 12:30 PM Douwe den Blanken @.***>
wrote:

For example on this page:
https://harvard-edge.github.io/cs249r_book/frameworks.html

The code has still some formatting inside the code block:
image.png (view on web)
https://github.com/harvard-edge/cs249r_book/assets/24796206/ae988b1c-4f22-43a5-b639-086de63ebc2e


Reply to this email directly, view it on GitHub
https://github.com/harvard-edge/cs249r_book/issues/87, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABT6DFB4NC3C4GVSWINYZTDYHYCDTAVCNFSM6AAAAABAGLF4KSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDIMZXGI2DENQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Vijay Janapa Reddi, Ph. D. |
John L. Loeb Associate Professor of Engineering and Applied Sciences |
John A. Paulson School of Engineering and Applied Sciences |
Science and Engineering Complex (SEC) | 150 Western Ave, Room #5.305 |
Boston, MA 02134 |
Harvard University | Email @.***> | Website
http://scholar.harvard.edu/vijay-janapa-reddi | Google Scholar
https://scholar.google.com/citations?hl=en&user=gy4UVGcAAAAJ&view_op=list_works&sortby=pubdate
| Edge Computing Lab https://edge.seas.harvard.edu | Schedule a Meeting
https://scholar.harvard.edu/vijay-janapa-reddi/schedule | Admin
https://scholar.harvard.edu/vijay-janapa-reddi/contact |

<!-- gh-comment-id:1839822617 --> @profvjreddi commented on GitHub (Dec 5, 2023): Do you think you could help us with this? You'd have to follow the instructions here to issue any fixes: https://github.com/harvard-edge/cs249r_book On Mon, Dec 4, 2023 at 12:30 PM Douwe den Blanken ***@***.***> wrote: > For example on this page: > https://harvard-edge.github.io/cs249r_book/frameworks.html > > The code has still some formatting inside the code block: > image.png (view on web) > <https://github.com/harvard-edge/cs249r_book/assets/24796206/ae988b1c-4f22-43a5-b639-086de63ebc2e> > > — > Reply to this email directly, view it on GitHub > <https://github.com/harvard-edge/cs249r_book/issues/87>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABT6DFB4NC3C4GVSWINYZTDYHYCDTAVCNFSM6AAAAABAGLF4KSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDIMZXGI2DENQ> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> > -- Vijay Janapa Reddi, Ph. D. | John L. Loeb Associate Professor of Engineering and Applied Sciences | John A. Paulson School of Engineering and Applied Sciences | Science and Engineering Complex (SEC) | 150 Western Ave, Room #5.305 | Boston, MA 02134 | Harvard University | Email ***@***.***> | Website <http://scholar.harvard.edu/vijay-janapa-reddi> | Google Scholar <https://scholar.google.com/citations?hl=en&user=gy4UVGcAAAAJ&view_op=list_works&sortby=pubdate> | Edge Computing Lab <https://edge.seas.harvard.edu> | Schedule a Meeting <https://scholar.harvard.edu/vijay-janapa-reddi/schedule> | Admin <https://scholar.harvard.edu/vijay-janapa-reddi/contact> |
Author
Owner

@V0XNIHILI commented on GitHub (Dec 5, 2023):

I think the code blocks should look like this (only one { instead of two {{):

image

Instead of this currently:

image

At least, that is what is shown in the Quarto documentation:

image

I can change this in all files, but I am only not 100% sure this is the fix. How can we check this before merging it into main?

<!-- gh-comment-id:1841006720 --> @V0XNIHILI commented on GitHub (Dec 5, 2023): I think the code blocks should look like this (only one `{` instead of two `{{`): ![image](https://github.com/harvard-edge/cs249r_book/assets/24796206/614a7a97-29d0-4963-9d83-8f2a41bd72e8) Instead of this currently: ![image](https://github.com/harvard-edge/cs249r_book/assets/24796206/6e1115d4-7a7e-4f9f-aefe-5367be22a8d3) At least, that is what is shown in the Quarto documentation: ![image](https://github.com/harvard-edge/cs249r_book/assets/24796206/5b9db823-8ad0-4329-8596-dc1d9c45bd3d) I can change this in all files, but I am only not 100% sure this is the fix. How can we check this before merging it into main?
Author
Owner

@profvjreddi commented on GitHub (Dec 5, 2023):

There are some examples of this in here:
https://harvard-edge.github.io/cs249r_book/niclav_sys.html

Does that help?

You can preview what it looks like by following the quarto render command
as shown here: https://github.com/harvard-edge/cs249r_book (check out the
readme section)

On Tue, Dec 5, 2023 at 10:20 AM Douwe den Blanken @.***>
wrote:

I think the code blocks should look like this:

image.png (view on web)
https://github.com/harvard-edge/cs249r_book/assets/24796206/614a7a97-29d0-4963-9d83-8f2a41bd72e8

Instead of this currently:

image.png (view on web)
https://github.com/harvard-edge/cs249r_book/assets/24796206/6e1115d4-7a7e-4f9f-aefe-5367be22a8d3

At least, that is what is shown in the Quarto documentation:

image.png (view on web)
https://github.com/harvard-edge/cs249r_book/assets/24796206/5b9db823-8ad0-4329-8596-dc1d9c45bd3d

I can change this in all files, but I am only not 100% sure this is the
fix. How can we check this before merging it into main?


Reply to this email directly, view it on GitHub
https://github.com/harvard-edge/cs249r_book/issues/87#issuecomment-1841006720,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABT6DFHGRV47V3JLLFBNWCDYH43U3AVCNFSM6AAAAABAGLF4KSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBRGAYDMNZSGA
.
You are receiving this because you commented.Message ID:
@.***>

--
Vijay Janapa Reddi, Ph. D. |
John L. Loeb Associate Professor of Engineering and Applied Sciences |
John A. Paulson School of Engineering and Applied Sciences |
Science and Engineering Complex (SEC) | 150 Western Ave, Room #5.305 |
Boston, MA 02134 |
Harvard University | Email @.***> | Website
http://scholar.harvard.edu/vijay-janapa-reddi | Google Scholar
https://scholar.google.com/citations?hl=en&user=gy4UVGcAAAAJ&view_op=list_works&sortby=pubdate
| Edge Computing Lab https://edge.seas.harvard.edu | Schedule a Meeting
https://scholar.harvard.edu/vijay-janapa-reddi/schedule | Admin
https://scholar.harvard.edu/vijay-janapa-reddi/contact |

<!-- gh-comment-id:1841018070 --> @profvjreddi commented on GitHub (Dec 5, 2023): There are some examples of this in here: https://harvard-edge.github.io/cs249r_book/niclav_sys.html Does that help? You can preview what it looks like by following the quarto render command as shown here: https://github.com/harvard-edge/cs249r_book (check out the readme section) On Tue, Dec 5, 2023 at 10:20 AM Douwe den Blanken ***@***.***> wrote: > I think the code blocks should look like this: > > image.png (view on web) > <https://github.com/harvard-edge/cs249r_book/assets/24796206/614a7a97-29d0-4963-9d83-8f2a41bd72e8> > > Instead of this currently: > > image.png (view on web) > <https://github.com/harvard-edge/cs249r_book/assets/24796206/6e1115d4-7a7e-4f9f-aefe-5367be22a8d3> > > At least, that is what is shown in the Quarto documentation: > > image.png (view on web) > <https://github.com/harvard-edge/cs249r_book/assets/24796206/5b9db823-8ad0-4329-8596-dc1d9c45bd3d> > > I can change this in all files, but I am only not 100% sure this is the > fix. How can we check this before merging it into main? > > — > Reply to this email directly, view it on GitHub > <https://github.com/harvard-edge/cs249r_book/issues/87#issuecomment-1841006720>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABT6DFHGRV47V3JLLFBNWCDYH43U3AVCNFSM6AAAAABAGLF4KSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBRGAYDMNZSGA> > . > You are receiving this because you commented.Message ID: > ***@***.***> > -- Vijay Janapa Reddi, Ph. D. | John L. Loeb Associate Professor of Engineering and Applied Sciences | John A. Paulson School of Engineering and Applied Sciences | Science and Engineering Complex (SEC) | 150 Western Ave, Room #5.305 | Boston, MA 02134 | Harvard University | Email ***@***.***> | Website <http://scholar.harvard.edu/vijay-janapa-reddi> | Google Scholar <https://scholar.google.com/citations?hl=en&user=gy4UVGcAAAAJ&view_op=list_works&sortby=pubdate> | Edge Computing Lab <https://edge.seas.harvard.edu> | Schedule a Meeting <https://scholar.harvard.edu/vijay-janapa-reddi/schedule> | Admin <https://scholar.harvard.edu/vijay-janapa-reddi/contact> |
Author
Owner

@V0XNIHILI commented on GitHub (Dec 5, 2023):

It seems like the fix is actually: {.python}, since this is a static block of code, see here: https://quarto.org/docs/output-formats/html-code.html#code-overflow

Screenshot:
image

Shall I change this in all .qmd files?

<!-- gh-comment-id:1841096364 --> @V0XNIHILI commented on GitHub (Dec 5, 2023): It seems like the fix is actually: `{.python}`, since this is a static block of code, see here: https://quarto.org/docs/output-formats/html-code.html#code-overflow Screenshot: ![image](https://github.com/harvard-edge/cs249r_book/assets/24796206/bf82e6d6-918a-437a-9147-7963619ed21b) Shall I change this in all .qmd files?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#1256