You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`ldoc-markdown-parser` is a simple and extensible Lua documentation parser that converts Lua documentation comments into Markdown format. It supports both single-line and multi-line comments, making it easy to document your Lua code in a structured way.
5
+
6
+
## Features
7
+
- Extracts single-line and multi-line comments from Lua files.
8
+
- Parses custom tags such as `@property`, `@shortDescription`, `@param`, and `@return`.
9
+
- Converts extracted comments and parsed tags into Markdown format.
10
+
- Easy to extend and customize for additional tags or formatting options.
11
+
12
+
## Installation
13
+
To install the `ldoc-markdown-parser`, clone the repository and navigate to the project directory:
14
+
15
+
```bash
16
+
git clone <repository-url>
17
+
cd ldoc-markdown-parser
18
+
```
19
+
20
+
## Usage
21
+
To use the parser, run the `main.lua` file with the Lua interpreter, providing the path to the Lua file you want to parse:
22
+
23
+
```bash
24
+
lua src/main.lua path/to/your/lua_file.lua
25
+
```
26
+
27
+
The output will be generated in Markdown format and can be found in the specified output directory.
28
+
29
+
## Example
30
+
An example Lua file can be found in the `examples/input/example.lua`, and the expected output Markdown file is located in `examples/output/example.md`.
31
+
32
+
## Contributing
33
+
Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.
34
+
35
+
## License
36
+
This project is licensed under the MIT License. See the LICENSE file for more details.
0 commit comments