# Difference between html.js and renderer/html.js? (Commonmark.js javascript)

**URL:** <https://talk.commonmark.org/t/difference-between-html-js-and-renderer-html-js-commonmark-js-javascript/2308>\
**Category:** Implementation\
**Created:** [December 2, 2016, 6:16pm UTC](https://talk.commonmark.org/t/difference-between-html-js-and-renderer-html-js-commonmark-js-javascript/2308 "2016-12-02T18:16:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamwil](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/iamwil/32/1061_2.png) [@iamwil](https://talk.commonmark.org/u/iamwil)\
**Post date:** [December 2, 2016, 6:16pm UTC](https://talk.commonmark.org/t/difference-between-html-js-and-renderer-html-js-commonmark-js-javascript/2308/1 "2016-12-02T18:16:02Z")

</div>

Hi all,

I had a question about the javascript implementation [commonmark.js](https://github.com/jgm/commonmark.js).

What’s the difference between html.js and renderer/html.js? It seems like the former isn’t used at all. I was going to write my own html renderer, and didn’t know which one to look at. It seems like the library uses renderer/html.js.

If anyone has info on it, it’d be appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![lwmr](https://cdn.commonmark.org/letter_avatar_proxy/v2/letter/l/0ea827/32.png) [@lwmr](https://talk.commonmark.org/u/lwmr)\
**Post date:** [December 15, 2016, 11:07pm UTC](https://talk.commonmark.org/t/difference-between-html-js-and-renderer-html-js-commonmark-js-javascript/2308/2 "2016-12-15T23:07:14Z")

</div>

> [@iamwil](#):
>
> What’s the difference between html.js and renderer/html.js?

What do you mean? In that repo there’s only one file named `html.js`: `lib/render/html.js`.

Can you rephrase your question?

---

<div class="post-metadata">

**Author:** ![iamwil](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/iamwil/32/1061_2.png) [@iamwil](https://talk.commonmark.org/u/iamwil)\
**Post date:** [December 16, 2016, 3:08am UTC](https://talk.commonmark.org/t/difference-between-html-js-and-renderer-html-js-commonmark-js-javascript/2308/3 "2016-12-16T03:08:29Z")

</div>

There’s an extraneous html.js outside of renderer. No worries, I got the  
answer from the maintainer. He said the one outside of renderer is  
vestigial.
