feat(youtube): add YouTube video embedding support #50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
<youtube>element for embedding YouTube videos in Hype markdown documents-and_)Usage
Output
The element renders as:
Files Changed
youtube.go- YouTube element implementationyoutube_test.go- Unit testshype.go- Register YouTube parsertestdata/json/youtube.json- JSON test fixturedocs/quickstart/hype.md- Documentation for YouTube embeddingtestdata/auto/youtube/hype.md- Integration test inputtestdata/auto/youtube/hype.gold- Integration test expected outputTest plan
Test_YouTube_MarshalJSON- JSON serializationTest_YouTube_String- HTML rendering with custom titleTest_YouTube_String_DefaultTitle- Default title handlingTest_YouTube_ValidationError_MissingID- Error on missing IDTest_YouTube_ValidationError_InvalidID- Error on malformed IDsTest_YouTube_VideoID- Video ID accessorTest_YouTube_Title- Title accessorTest_YouTube_MD- Markdown exportTest_Testdata_Auto_Modules/youtube- Integration testCloses #49
🤖 Generated with Claude Code