# Migration Guide

Migrate to Marked from other markdown libraries.

## From markdown-it

```javascript
// markdown-it
const md = require('markdown-it')();
const html = md.render(markdown);

// marked
import { marked } from "marked";
const html = marked.parse(markdown);
```

## From showdown

```javascript
// showdown
const converter = new showdown.Converter();
const html = converter.makeHtml(markdown);

// marked
import { marked } from "marked";
const html = marked.parse(markdown);
```

## From Older Marked Versions

**Breaking changes in v17**:
- Minimum Node.js version is now 20
- Some deprecated options removed
- Extension API changes

**Migration steps**:

```javascript
// Old (deprecated)
marked.setOptions({
  highlight: function(code, lang) {
    // Old highlight option
  }
});

// New (v17+)
marked.use({
  renderer: {
    code({ text, lang }) {
      // Custom code rendering
    }
  }
});
```
