Skip to content

Nested elements in syntax#469

Merged
Matthbo merged 3 commits intomasterfrom
issue/444-no-nested-elements-in-frankdoc
Mar 17, 2026
Merged

Nested elements in syntax#469
Matthbo merged 3 commits intomasterfrom
issue/444-no-nested-elements-in-frankdoc

Conversation

@Matthbo
Copy link
Member

@Matthbo Matthbo commented Mar 16, 2026

image

@Matthbo Matthbo linked an issue Mar 16, 2026 that may be closed by this pull request
@Matthbo Matthbo requested a review from a team March 16, 2026 15:55
@Matthbo Matthbo self-assigned this Mar 16, 2026
Comment on lines +14 to +15
template:
'<pre><button (click)="copyToClipboard(elementSyntax)">Copy</button><code [innerText]="elementSyntax"></code></pre>',
Copy link
Member

@philipsens philipsens Mar 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
template:
'<pre><button (click)="copyToClipboard(elementSyntax)">Copy</button><code [innerText]="elementSyntax"></code></pre>',
template: `
<pre>
<button (click)="copyToClipboard(elementSyntax)">Copy</button>
<code [innerText]="elementSyntax"></code>
</pre>`,

I think it is nice to structure inline templates this way for readability.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't, since this is all in a pre tag it'll also use the newlines when rendering the HTML

…ls-element-syntax/details-element-syntax.component.spec.ts

Co-authored-by: Erik <[email protected]>
@Matthbo Matthbo merged commit 0af664e into master Mar 17, 2026
2 checks passed
@Matthbo Matthbo deleted the issue/444-no-nested-elements-in-frankdoc branch March 17, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

no nested elements in frankdoc

3 participants