Neelix
Insecticidal Maniac
Wouldn't that only be a problem if that aspect of the format is implemented? If you control the implementation you can ensure that attempts to embed HTML are ignored, no?
-Neelix
-Neelix
Well as B-ZaR already suggested, Markdown could work well. It also occurs to me that we could use a subset of BBCode, which was designed for the exact purpose of providing a set of formatting codes that could be used to format user provided content without having to permit the use of raw html in the content itself. There's no need to re-invent the wheel here.
You don't really understand the issue. Embedded HTML isn't really a problem as long as no HTML at all is the target.
There shouldn't be any need for any special markdown extensions, just plain standard markdown should do. This means existing markdown editors can be used.
Markdown has the benefit that it's actually quite readable and clean even in its plaintext format.Well as B-ZaR already suggested, Markdown could work well. It also occurs to me that we could use a subset of BBCode, which was designed for the exact purpose of providing a set of formatting codes that could be used to format user provided content without having to permit the use of raw html in the content itself. There's no need to re-invent the wheel here.
Oh, did miss that - sorry.
I am not comfortable with using "BBCode" or the mentioned "RestructuredText" as this sets the entry level higher for package maintainers as they occur to me as rather "exotic" languages. Markdown may have its merits, but which one would or should it be ? Depending on the intended requirements (= what should be possible in terms of text magic) we may need to use a variation that also allows to embed html. And then we are back at square one: if we need to filter anyway, why not html directly > its widely know, and a gazillion tutorials,editors, libraries, controls, etc are already available ?
Well, there need to be usable libraries for C and PHP, preferably in repo, for it to even be considrered..
Markdown has the benefit that it's actually quite readable and clean even in its plaintext format.
http://www.w3.org/community/markdown/wiki/MarkdownImplementationsMarkdown has the benefit that it's actually quite readable and clean even in its plaintext format.
With that in mind, and that it has a rather simple syntax (which is, thanks to git, probably widely known) it looks like a viable option - do you know wether there are libs widely available / already "common" to convert it to html ?
The biggest downside to markdown I know is no nice table support.
Sundown isnt in repo. There is however another library for plain unextended markdown (libmarkdown2 in repo).Well, there need to be usable libraries for C and PHP, preferably in repo, for it to even be considrered..
php-markdown (PHP), sundown (C)