Comments (9)
I have a lot that look like "Examples: " etc, that if for nothing other than backwards compat I would like to retain that functionality, but other than that I agree. I think we should only transform it to an h2 when it's short though
from dox.
It's a bit obscur, if it's short h2, if not p ...
from dox.
yup it is but I don't want to go redo docs for hundreds of projects :p
from dox.
I can understand. How to you produce your doc, because dox output is in json. Maybe this feature, "small words with colons becomes h2" could be a feature of the documentation generator and not of javadoc parser (dox) ?
from dox.
It's an interesting point, you can ask for dox to give you the markdown directly, and then parse it yourself. I do this myself in my own docs generating library (very much at an alpha stage at the moment) so I can parse the markdown myself and add syntax highlighting at the same time
- The Repo - https://github.com/jepso/gitdocs
- The Call to docs is in https://github.com/jepso/gitdocs/blob/master/filehandler/filehelpers.js
- You can see the output by running
npm install gitdocs -g
then cd-ing to a directory with some code in it and runninggitdocs
then browsing tolocalhost:2000
This method lets you get complete control over the parsing.
from dox.
Thanks ForbesLindesay, I think you mean the raw
option ?
I already notice this option. But when I parse Example:
and ## Example:
there is no diffrence in the output even if with the raw
option. Both outputs are:
"description": {
"full": "Parse the given `str`.\n\n## Examples:\n\n parse(str)\n // => \"wahoo\"\n",
"summary": "Parse the given `str`.",
"body": "## Examples:\n\n parse(str)\n // => \"wahoo\"\n"
}
Because of this line: .replace(/^([A-Z][\w ]+):$/gm, '## $1')
from dox.
Sorry miss click on Close & comment
from dox.
ouch, that does seem like a bug to me, I don't think we should do the conversion in raw mode. @visionmedia what are your thoughts?
from dox.
I dont remember what I did ATM but yeah if it's in .raw that's no good
from dox.
Related Issues (20)
- Class properties support HOT 1
- Extra whitespace when a tag is followed by an empty line HOT 5
- fileOverview/file/overview HOT 12
- Support more tags HOT 2
- Wrong parsing of param tags with line breaks
- Wrong parsing of default values
- Opt out of parsing typesDescription?
- `*` type ignored HOT 2
- Wrong parsing result when no type is given
- Override detected code with jsdoc directives? HOT 3
- [improvement] Handle @return description the same as @param description. HOT 2
- [improvement] better description handling, and theming idea HOT 6
- Handling ES-2015 exports
- Add support for ES2016 template literals HOT 2
- not parsing {@link} tag HOT 6
- Bump verision no HOT 4
- How to run this on any file (.cpp, .java, etc) HOT 1
- Parsing fails with no indication of which file is broken HOT 2
- Security vulnerabilities with jsdoctypeparser and lodash HOT 1
- dox does not support `async function` from ES2017 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dox.