8000 Ignore source-code-blocks while processing comments. by jodyhagins · Pull Request #555 · tomaz/appledoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ignore source-code-blocks while processing comments. #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 8, 2015

Conversation

jodyhagins
Copy link
Contributor

Appledoc gives warnings when it encounters parsing issues inside
source code blocks. In particular, it looks for style markup and
reference links. These are especially bad within ObjectiveC
source code example blocks because of the ObjectiveC bracket
syntax and the obligatory underscores for category methods on
Cocoa classes.

This is similar to bug #72, but not exactly. I noticed that in
another similar report, these issues are gone in version 3, so I
didn't bother trying to fix this completely.

Basically, the code intercepts the markdown processing, and looks
for any sections within documentation blocks that are marked with
either @code/@Endcode of the ~~~/~~~ and / markdown syntax.

If it finds those blocks, it will output them as markup (making
sure to use the backtick format), and skip any further processing
for that block of text.

Appledoc gives warnings when it encounters parsing issues inside
source code blocks.  In particular, it looks for style markup and
reference links.  These are especially bad within ObjectiveC
source code example blocks because of the ObjectiveC bracket
syntax and the obligatory underscores for category methods on
Cocoa classes.

This is similar to bug tomaz#72, but not exactly.  I noticed that in
another similar report, these issues are gone in version 3, so I
didn't bother trying to fix this completely.

Basically, the code intercepts the markdown processing, and looks
for any sections within documentation blocks that are marked with
either @code/@Endcode of the ~~~/~~~ and ```/``` markdown syntax.

If it finds those blocks, it will output them as markup (making
sure to use the backtick format), and skip any further processing
for that block of text.
tomaz added a commit that referenced this pull request Sep 8, 2015
Ignore source-code-blocks while processing comments.
@tomaz tomaz merged commit 8e052df into tomaz:master Sep 8, 2015
@tomaz
Copy link
Owner
tomaz commented Sep 8, 2015

Thanks, merged.

jodyhagins added a commit to jodyhagins/appledoc that referenced this pull request Sep 8, 2015
jodyhagins added a commit to jodyhagins/appledoc that referenced this pull request Sep 8, 2015
@jodyhagins jodyhagins deleted the dont_process_source_code_block branch September 9, 2015 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0