This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
.markdown-source-view.is-live-preview, | |
.markdown-rendered, | |
.print { | |
/* Approximate width of the h1-h6 marker and the fold marker */ | |
--marker-width: -34px; | |
h1, | |
h2, | |
h3, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { OnInit, OnChanges, SimpleChanges } from '@angular/core'; | |
import { ElementRef, Renderer2, Directive, inject, input } from '@angular/core'; | |
import { Subject } from 'rxjs'; | |
import { debounceTime } from 'rxjs/operators'; | |
@Directive({ | |
selector: '[fittext]', | |
standalone: true, | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface BeforeEventConfig { | |
directories: { | |
input: string; | |
output: string; | |
data: string; | |
includes: string; | |
inputFile?: string; | |
inputGlob?: string; | |
layouts?: string; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { render } from "preact-render-to-string"; | |
import type { FunctionComponent } from "preact"; | |
export default function (config) { | |
config.addExtension("11ty.tsx", { | |
getInstanceFromInputPath: async function (path) { | |
const module: { default: FunctionComponent } = await import(path); | |
return module.default; | |
}, | |
compile: function (component: FunctionComponent) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
booleanAttribute, | |
Directive, | |
effect, | |
ElementRef, | |
inject, | |
input, | |
Renderer2, | |
} from '@angular/core'; | |
import { RouterLinkActive } from '@angular/router'; |
OlderNewer