Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tools/sass-variable-explainer/remove-nonsemantic-entries.ts
6433 views
1
export const isRealContent = (v: any) => {
2
if (!v?.type) {
3
return true;
4
}
5
if (["space", "comment_singleline", "comment_multiline"].includes(v.type)) {
6
return false;
7
}
8
return true;
9
}
10
11
export const isNotPunctuation = (v: any) => {
12
if (!v?.type) {
13
return true;
14
}
15
if (v.type === "punctuation") {
16
return false;
17
}
18
return true
19
}
20
21