Skip to content

Commit

Permalink
prevent ft class names from being removed
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Nov 8, 2023
1 parent 3eb6f6a commit bd35bf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fastn-js/js/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
let fastn_utils = {
ftClassNames: ["ft_column", "ft_row"],
htmlNode(kind) {
let node = "div";
let css = [];
Expand Down Expand Up @@ -104,7 +105,8 @@ let fastn_utils = {
const classesToRemove = [];

for (const className of iterativeClassList) {
if (!className.startsWith('__') &&
if (!className.startsWith('__') &&
!this.ftClassNames.includes(className) &&
className !== extraCodeData?.language &&
className !== extraCodeData?.theme
) {
Expand Down

0 comments on commit bd35bf8

Please sign in to comment.