jsdoc2md / dmd

The default output template for jsdoc2md
MIT License
38 stars 49 forks source link

Fix: Both caption and lang in example #57

Closed winterhotlatte closed 6 years ago

winterhotlatte commented 6 years ago

Issue

@lang tag not processed if the <caption> and @lang tags are both included into the @example source directly; I assume this is not intended, as otherwise @lang processing would be conditionally dependent on presence of <caption>.

Thus this is a bug, and the reason is, that when <caption> is present, the example has first line removed, and processing is continued for @lang on modified example, which already does not have the original line.

Goals

Solution

Note

75lb commented 6 years ago

merged and released in dmd v3.0.12, please reinstall jsdoc2md. Thanks 👍