Skip to content

Simplify single-line embedding#39

Merged
Vladyslav-Kuksiuk merged 1 commit into
masterfrom
improve-one-line-embedding
May 25, 2026
Merged

Simplify single-line embedding#39
Vladyslav-Kuksiuk merged 1 commit into
masterfrom
improve-one-line-embedding

Conversation

@Vladyslav-Kuksiuk
Copy link
Copy Markdown
Collaborator

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk commented May 25, 2026

This PR improves the single-line embedding, by adding the line attribute to the <embed-code> instruction. Instead of providing both similar start and end it is now possible to provide one line attribute.

For example:

<embed-code
  file="$test/issue19.kts"
  line="val validationVersion"
/>
```
val validationVersion by extra("2.0.0-SNAPSHOT.419")
```

Note: The line attribute cannot be combined with start, end, or fragment.

Resolves SpineEventEngine/embed-code-jekyll#19.

Copy link
Copy Markdown
Collaborator

@dmytro-kashcheiev dmytro-kashcheiev left a comment

Choose a reason for hiding this comment

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

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk merged commit 4beba5d into master May 25, 2026
3 checks passed
@Vladyslav-Kuksiuk Vladyslav-Kuksiuk deleted the improve-one-line-embedding branch May 25, 2026 15:45
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.

For one line embedding allow shortcut end=start

2 participants