Fix codeblock formatting and import modular CSS

documentation
25.09.01
bug
Published

September 4, 2025

This update resolves a codeblock formatting issue that caused incorrect text positioning when specifying a language like Python. Now, codeblocks display with the correct formatting and text positioning. Additionally, similar formatting issues in course slides have been addressed to ensure consistent and accurate presentation across various components.

Source Output BEFORE Output AFTER
A code snippet written in Python is displayed, featuring a variable named gini set to 0.75. A dictionary called thresholds contains three key-value pairs: high_risk with a value of 0.5, medium_risk with 0.6, and low_risk with 0.8. A function named passed_fn takes a parameter value and returns a boolean indicating if the value is greater than or equal to the low_risk threshold. Another function, log_metric, is called with parameters key set to GINI Score, value set to gini, recorded_at set to a datetime object for June 10, 2025, thresholds set to the thresholds dictionary, and passed set to the result of passed_fn with gini as the argument. The code is formatted with syntax highlighting, using colors to differentiate elements like keywords, variables, and values. The image shows a code snippet with a light blue background. It begins with a variable assignment for gini with a value of 0.75. Below, a dictionary named thresholds is defined with keys 0.5, 0.6, and 0.8, each corresponding to high_risk, medium_risk, and low_risk respectively. A function named passed_fn is defined to return a boolean indicating if a value is greater than or equal to the low_risk threshold. The snippet concludes with a call to log_metric with parameters key set to GINI Score, value set to gini, recorded_at set to a datetime object for June 10, 2025, and thresholds and passed set to their respective variables. A code snippet is displayed on a light blue background. The code defines a variable gini with a value of 0.75. A dictionary named thresholds is defined with keys high_risk, medium_risk, and low_risk, assigned values 0.5, 0.6, and 0.8 respectively. A function passed_fn takes a parameter value and returns a comparison between value and the low_risk threshold. A log_metric function is called with parameters including key set to GINI Score, value set to gini, recorded_at set to a datetime object for June 10, 2025, and additional parameters thresholds and the result of passed_fn with gini as an argument. The code is formatted with indentation for readability.
Before After
——– ——-
A presentation slide titled Codeblock test displays a code snippet in the center. The code snippet is formatted as a JSON object with the key gini set to 1. It includes a nested object thresholds with keys high_risk, medium_risk, and low_risk, each followed by a colon and an empty string. The slide has a white background with black text, and the code is highlighted with line numbers in red on the left. The bottom right corner shows the text Validated Academy in pink. A presentation slide titled Codeblock test displays a code snippet within a bordered box. The code snippet includes a variable gini set to 0.75 and a dictionary named thresholds with key-value pairs: high_risk set to 0.5, medium_risk set to 0.6, and low_risk set to 0.8. The slide has a white background with the code snippet centered and the title in bold black text above it. At the bottom right corner, there is a pink checkmark icon next to the text Validated Academy.