You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my current CBE 20258 notebooks, I use some HTML code to put a colored box around certain markdown cells. For example:
<div style="background-color: rgba(0,255,0,0.05) ; padding: 10px; border: 1px solid darkgreen;">
<b>Home Activity</b>: In the cell below, assign the value of 5 to the variable x. Then type Shift+Enter to execute the line.
</div>
This box is solid dark green which I use for all "home activities". I used a blue box for "class activities" and a red box for "important notes". Would it be possible to add a border and set the background color accordingly for cells with "home-activity", "class-activity", and "important-note" tags when publishing to the HTML pages? Currently, nbpages strips out this formatting, which I think is fine. I would much rather use tags.
The text was updated successfully, but these errors were encountered:
adowling2
changed the title
Special processing for cells with special tags
Special formatting for cells with special tags
Jun 6, 2020
The relevant code is entirely in /templates/notebook.tpl, so this is potentially a user configurablel feature. But currently there is no backup for the templates if --setup is rerun. So if this looks like a good idea, then that's a change needed for --setup in order to protect against inadvertently overwriting a modified template.
In my current CBE 20258 notebooks, I use some HTML code to put a colored box around certain markdown cells. For example:
This box is solid dark green which I use for all "home activities". I used a blue box for "class activities" and a red box for "important notes". Would it be possible to add a border and set the background color accordingly for cells with "home-activity", "class-activity", and "important-note" tags when publishing to the HTML pages? Currently, nbpages strips out this formatting, which I think is fine. I would much rather use tags.
The text was updated successfully, but these errors were encountered: