{"size": 182, "ext": "js", "max_stars_repo_path": "packages/tiptap-commands/src/commands/updateMark.js", "max_stars_repo_name": "kopipejst/tiptap", "max_stars_repo_stars_event_min_datetime": "2020-10-21T07:00:19.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-21T07:00:19.000Z", "max_issues_repo_path": "packages/tiptap-commands/src/commands/updateMark.js", "max_issues_repo_name": "flitrue/tiptap", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/tiptap-commands/src/commands/updateMark.js", "max_forks_repo_name": "flitrue/tiptap", "max_forks_repo_forks_event_min_datetime": "2020-11-30T11:24:16.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-30T11:24:16.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 26.0, "max_line_length": 65, "alphanum_fraction": 0.6758241758}
export default function (type, attrs) {
  return (state, dispatch) => {
		const { from, to } = state.selection
		return dispatch(state.tr.addMark(from, to, type.create(attrs)))
	}
}
