fix: extract first line as plain-text title from Javadoc comments - #20
Conversation
shalousun
commented
Jul 11, 2026
- Add DocUtil.getCommentFirstLine() to extract first line with HTML tags stripped, producing a clean plain-text title for headings
- Update all template builders to use getCommentFirstLine for desc field instead of the full Javadoc comment
- Fix detail fallback to use full comment when desc is now truncated
- Conditionally render Description section in all HTML/Markdown templates — hidden when doc.detail is empty (no comment written)
- Add DocUtil.getCommentFirstLine() to extract first line with HTML tags stripped, producing a clean plain-text title for headings - Update all template builders to use getCommentFirstLine for desc field instead of the full Javadoc comment - Fix detail fallback to use full comment when desc is now truncated - Conditionally render Description section in all HTML/Markdown templates — hidden when doc.detail is empty (no comment written)
|
🔍 Before proceeding, please review the contribution guidelines This includes requirements for:
Thanks for your PR. 🙏 In addition, if you have added new features, please provide example code in the repository smart-doc-group/smart-doc-example-cn. This will help other users understand how to use the new features. Code Style Reminder: 🔍 提交前请务必完成以下检查 需特别注意:
感谢您提交的PR。 🙏 另外,如果您添加了新功能,请在仓库smart-doc-group/smart-doc-example-cn中提供示例代码。这将帮助其他用户了解如何使用新功能。 代码风格提示: |