This toolbox provides a function livescript2markdown that allows you to convert your live scripts to markdown files. This function helps you to document your repositories.
- MATLAB R2020b or later
- livescript2markdown: MATLAB's live scripts to markdown addon (will be installed automatically with toolbox)
Execute in MATLAB:
eval(webread('https://git.io/JYcyl'))
Use Add-Ons Explorer in MATLAB to find and install Live Script To Markdown Converter.
Download Live.Script.To.Markdown.Converter.mltbx from the latest release and open it in MATLAB.
Use livescript2markdown function to convert mlx-script to md-file.
livescript2markdown(mlxfile)
livescript2markdown(mlxfile,mdfile)
livescript2markdown(___,Name,Value)
mdfile = livescript2markdown(___)
livescript2markdown(mlxfile) converts MATLAB live script (.mlx) to markdown text file (.md) in format suitable for GitHub or Qiita. Output md-file will be stored in current folder with the name of source mlx-file.
livescript2markdown(mlxfile,mdfile) allows you to specify full or relative path to the output markdown file
livescript2markdown(___,Name,Value) allows you to tune conversion process using one or more Name,Value pair arguments. Use this option with any of the input argument combinations in the previous syntaxes.
mdfile = livescript2markdown(___) returns full path to the output markdown file
mlxfile- absolute or relative path to the input live script file (.mlx). Scalar string | char arraymdfile- absolute or relative path to the output markdown text file (.md). Scalar string | char array
'Format': It can be'github'(default) or'qiita'.Markdown file format'Png2jpeg': It can befalse(default) ortrue. Enable to convert PNG images to JPEG images to compress'TableMaxWidth': max witdh of table in markdown (default:20)'FixLinks': convert file links withopen,winopen,cdinto suitable markdown format. It can betrue(default) orfalse'NormalizeLines': remove extra empty lines in generated file. It can betrue(default) orfalse'AddMention': mention this toolbox at the end of generated file. It can befalse(default) ortrue'ToC': add a table of contents at the beginning of generated file. It can befalse(default) ortrue
mdfile- absolute path to the output markdown text file (.md). Scalar string
Convert documentation of this toolbox into README.md file
livescript2markdown('main/doc/GettingStarted.mlx', 'README.md', 'AddMention', true);
Give a star if this project helped you.
Generated from GettingStarted.mlx with Live Script to Markdown Converter