[docs] [issue36675] Doctest directives and comments not visible or missing from code samples