
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@smikitky/ron
Advanced tools
Ron is a helper script for writing manuscripts in markdown.
[2-3,7]) in your manuscript.Install Node.js.
Create your project.
$ mkdir my-research-paper
$ cd my-research-paper
$ git init
$ npm init
Install Ron via NPM.
$ npm install @smikitky/ron
Run the setup script. This will create a directory called src in your project and fills it with sample files.
$ npx ron --init
Write your manuscript and compile.
$ npx ron
The --watch (or -w) option is useful to recompile everything when you made some change to the source directory. Use npx ron --help to see other available options.
src/
index.md
references.yaml
figures.yaml
styles.yaml
style.css
index.md)This is the main manuscript written in the Markdown format. In addition to all the commonmark markups, it supports the following syntax:
`ref:<tag>` (e.g., `ref:yamada2010`)`references``fig:<tag>` (e.g., `fig:mydog`)`figures``tab:<tag>` (e.g., `tab:prices`)`tables`references.yaml)Your reference list should be placed as src/references.yaml.
yamada2010:
authors: Yamada T, Suzuki I, Eto H
title: 'Alice in Wonderland'
journal: Science
issue: '2010;5(6): 1038-1053'
online2015:
literal: Natural number. https://en.wikipedia.org/wiki/Natural_number. Accessed May 10, 2013.
Here yamda2010 and online2015 are the "tags". In the main manuscript file, the tags are referred to like `ref:yamada2010`. Near the end of your manuscript, you can output the references list by writing `references`.
You should list all of the authors in the authors attribute. This will be formatted using authorsList formatter described below.
Ron supports formatting of typical journal articles, but it does not support atypical references such as those to book chapters and web pages. In such cases, use the literal attribute, which will not be formatted at all.
figures.yaml)Ron will convert your figures into TIFF (for submission) and PNG (for HTML previeww) files. The format is similar to that of references.yaml.
my-rabbit:
caption: My rabbit.
resolution: 300
webResolution: 150
my-cat:
caption: Face (a) and tail (b) of my cat.
resolution: 150
subFigures:
- name: (a)
- name: (b)
resolution: 120
The format of source image files can be PDF (*.pdf), PNG (*.png) or JPEG (*.jpg). They must be placed under your source directory with appropreate extentions (e.g., src/my-rabbit.pdf, src/my-cat-(a).jpg).
Specify resolution (and webResolution) to determine the resolution to your PDF.
When there are sub-figures, they can be specified using the subFigures array. The element of the sugFigures is an object containing a name (typically a, (b), etc) and optional resolution/webResolution which overrides the root resolution.
tables.yml)Tables can be authored using HTML (*.html, more flexible) or Markdown (*.md, suitable for simple tables). Each table should be stored in a separate file and it must be referenced from tables.yaml.
my-table:
caption: foo
An HTML file should contain only the <table> tag and its contents.
styles.yaml)Use this file to customize output format.
reference:
format: >
{{authorList authors max=3}}. <b>{{capitalize title}}</b>. {{journal}} {{issue.year}};{{issue.volume}}({{issue.issue}}): {{{pages issue.pages compact=true delim='–'}}}.
citation:
format: >
[{{{items}}}]
itemSep: ','
hyphen: '-'
figCaption:
position: bottom
format: '<b>Figure {{index}}</b>: {{{caption}}}'
tabCaption:
position: top
format: '<b>Table {{index}}</b>: {{{caption}}}'
Values named format are processed using the Handlebar template engine.
reference.format: Defines the references format. See the explanation below.citation.format: Defines the citation format. For example, you can set this to <sup>{{{items}}}</sup> instead of the default.citation.itemSep (default: ','): Defines the comma between cite index. ([])citation.hyphen (default: '-'): Defines the hyphen used when three or more successive items are cited.figCaption.position (default: bottom): Defines the position of the caption. One of top, bottom or none.figCaption.format: Defines the format of figure captions.tabCaption.position (default: top): Defines the position of the caption. One of top, bottom or none.tabCaption.format: Defines the format of table captions.reference.format usageYou can use the following Handlebars helpers, some of which take hash (i.e., key-value pair) arguments.
authorList: Used with authors, formats the author list of the citing material.
max (default: 3): When the number of authors exceeds this number, the list will be truncated to truncateTo items and " et al" would be added at the end.truncateTo (default: the same as max): See above.etAl (default: ' et al'): Customizes the "et al" string.delimitor (default: , ): Customizes the comma string between authors.capitalize: Used with title, capitalize each words of the title using capitalize-title.pages: Used with issue.pages, formats the pages.
compact (default: false): When true, uses the compact format, e.g., 1025-31 instead of 1025-1031.delim (default: '-'): Customizes the delimiter used between the page numbers.style.css)Anything inside this CSS will be joined to the ron's default CSS rules.
FAQs
Helper for writing articles with markdown
We found that @smikitky/ron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.