rst-option: writer

Bug #680284 reported by Dan White
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leo-editor
Confirmed
Wishlist
Edward K. Ream

Bug Description

Currently the rst3 command with call_docutils=True keys on the extension of the "@rst filename.ext" node to determine the docutils writer to use. This does not allow using alternate or custom writers directly from leo.

Propose an rst option "writer" option, e.g. "@rst-option writer = latexmath" which defaults to None, falling back to the current inference scheme.

With this option it would also make sense to ignore the file extension if "writer" is set in methods like rstCommands.{write_files, writeToDocutils, etc}. This leaves it to the user to use an appropriate one.

Dan White (etihwnad)
Changed in leo-editor:
importance: Undecided → Low
Changed in leo-editor:
importance: Low → Wishlist
Changed in leo-editor:
status: New → Confirmed
assignee: nobody → Edward K. Ream (edreamleo)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.