Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown extension suggestion: note #354

Closed
nzakas opened this issue Nov 29, 2011 · 2 comments
Closed

Markdown extension suggestion: note #354

nzakas opened this issue Nov 29, 2011 · 2 comments

Comments

@nzakas
Copy link

nzakas commented Nov 29, 2011

I'm mainly using Pandoc to convert from Markdown to Docbook, and it's working out great. The one thing I'm missing is the ability to create elements in Docbook. So I'd like to suggest a new Markdown extension for notes. Basically, if a paragraph begins with "Note: ", treat it as a note block when converted to Docbook. For example:

Note: This would end up being a <note> element in Docbook.
@jgm
Copy link
Owner

jgm commented Nov 29, 2011

In the development version of pandoc (on github), you can do this:

<note>
This is my *note*.
</note>

and it will turn into

<note>
This is my <emphasis>note</emphasis>.
</note>

An advantage of this method is that the docbook tags will just
be ignored for other output formats than docbook.

+++ Nicholas C. Zakas [Nov 28 11 16:03 ]:

I'm mainly using Pandoc to convert from Markdown to Docbook, and it's working out great. The one thing I'm missing is the ability to create elements in Docbook. So I'd like to suggest a new Markdown extension for notes. Basically, if a paragraph begins with "Note: ", treat it as a note block when converted to Docbook. For example:

Note: This would end up being a <note> element in Docbook.

Reply to this email directly or view it on GitHub:
#354

@nzakas
Copy link
Author

nzakas commented Nov 29, 2011

Ah interesting. Not as pretty as my suggestion, but will definitely get me there. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants