Name underlining (whole word or just part of it?)
For compound words, the whole word is the proper noun and should be marked as a whole. 

Text full of underlining is proper but may look crowded, in which case there are typographical optimizations you can apply, such as increased line height and character padding, or use bold instead of underlining for the markup.